fix z-fighting for vanilla emissives and enchant glints

This commit is contained in:
Xonk
2025-05-13 19:05:49 -04:00
parent 6e824ddd3c
commit 2a794f532c
3 changed files with 6 additions and 20 deletions

View File

@ -385,8 +385,11 @@ void main() {
#endif
position = mat3(gbufferModelView) * worldpos + gbufferModelView[3].xyz;
gl_Position = toClipSpace3(position);
// ensure hand/entities have the same transformations as the spidereyes and enchant glint programs.
#if !defined ENTITIES && !defined HAND
gl_Position = toClipSpace3(position);
#endif
#endif
#if defined Seasons && defined WORLD && !defined ENTITIES && !defined BLOCKENTITIES && !defined HAND