mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- normalize the normal vector in the vertex shader because our vertex attribute uses a low precision format (10 bits)
This commit is contained in:
parent
4e14ed4e9e
commit
2000784307
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ void main()
|
|||
gl_ClipDistance[4] = worldcoord.y + ((uSplitBottomPlane.w + uSplitBottomPlane.x * worldcoord.x + uSplitBottomPlane.y * worldcoord.z) * uSplitBottomPlane.z);
|
||||
}
|
||||
|
||||
vWorldNormal = NormalModelMatrix * aNormal;
|
||||
vWorldNormal = NormalModelMatrix * normalize(aNormal);
|
||||
vEyeNormal = NormalViewMatrix * vWorldNormal;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue