Add comment briefly explaining optimization

This commit is contained in:
gm-matthew 2024-06-09 22:04:53 +01:00 committed by Bart Trzynadlowski
parent f30a8ee2a8
commit 42e236be0d

View file

@ -263,6 +263,7 @@ vec4 textureR3D(usampler2D texSampler, ivec2 wrapMode, ivec2 texSize, ivec2 texP
} }
else else
{ {
// if fLevel is 0, no need to mix with next mipmap level; slight performance boost
return texBiLinear(texSampler, wrapMode, vec2(texSize0), texPos0, texCoord); return texBiLinear(texSampler, wrapMode, vec2(texSize0), texPos0, texCoord);
} }
} }