clamp normal before encoding

This commit is contained in:
Xonk committed 2026-02-03 01:13:40 -05:00
1 parent 60c37f0b04
commit 433aceb4bd
1 file changed
+1 -1
+1 -1
View File
@@ -550,7 +550,7 @@ void main() {
specularData.b = SpecularTex.b;
#endif
vec4 otherData = vec4(viewToWorld(FlatNormals) * 0.5 + 0.5, VanillaAO);
vec4 otherData = clamp(vec4(viewToWorld(FlatNormals) * 0.5 + 0.5, VanillaAO),0.0,1.0);
gl_FragData[1] = vec4(
encodeVec2(specularData.x, otherData.x),