mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 23:25:40 +00:00
Add comment briefly explaining optimization
This commit is contained in:
parent
f30a8ee2a8
commit
42e236be0d
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue