You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/nbl/builtin/glsl/virtual_texturing/impl_functions.glsl
+26-11Lines changed: 26 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -112,21 +112,36 @@ vec4 nbl_glsl_vTextureGrad_impl(in uint formatID, in vec3 virtualUV, in mat2 dOr
112
112
#else
113
113
LoD *=0.5;
114
114
#endif
115
+
LoD +=5.f;
115
116
// WARNING: LoD_high will round up when LoD negative, its not a floor
116
117
int LoD_high =int(LoD);
117
118
118
-
// are we performing minification
119
-
bool positiveLoD = LoD>0.0;
120
-
// magnification samples LoD 0, else clip to max representable in VT
121
-
int clippedLoD = positiveLoD ?min(LoD_high,int(originalMaxFullMip)-1):0; // originalMaxFullMip is always -1 in case of no miplevel taking at least 1 full page
0 commit comments