make the logic a bit clearer

This commit is contained in:
Ian Curtis 2018-01-15 14:40:59 +00:00
parent 22a6166b82
commit 99b5b9ba1b

View file

@ -102,7 +102,7 @@ vec4 GetTextureValue()
} }
if (microTexture) { if (microTexture) {
vec2 scale = baseTexSize / ( 128.0 / microTextureScale ); vec2 scale = (baseTexSize / 128.0) * microTextureScale;
vec4 tex2Data = texture2D( tex2, fsTexCoord.st * scale); vec4 tex2Data = texture2D( tex2, fsTexCoord.st * scale);
tex1Data = (tex1Data+tex2Data)/2.0; tex1Data = (tex1Data+tex2Data)/2.0;
} }