mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-26 07:35:40 +00:00
make the logic a bit clearer
This commit is contained in:
parent
22a6166b82
commit
99b5b9ba1b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue