We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71b2522 commit f2f960eCopy full SHA for f2f960e
shader/textures.glsl
@@ -95,10 +95,10 @@ void computeLOD(
95
const bool clam = textDetail == G_TD_CLAMP;
96
97
const vec2 dfd = max(dx, dy);
98
+ // TODO: should this value be scaled by clipping planes?
99
const float maxDist = max(dfd.x, dfd.y);
100
101
const uint mipBase = uint(floor(log2(maxDist)));
- // TODO: should this value be scaled by clipping planes?
102
const bool distant = perspectiveOverflow || maxDist >= 16384.0;
103
const bool aboveCount = mipBase >= material.mipCount;
104
const bool maxDistant = distant || aboveCount;
0 commit comments