fix error when POM is enabled

This commit is contained in:
Xonk
2025-02-25 22:23:50 -05:00
parent 8a1bdcb9ca
commit 232e5304a8
3 changed files with 30 additions and 49 deletions

View File

@ -66,7 +66,6 @@ vec4 toClipSpace3(vec3 viewSpacePosition) {
varying vec4 tangent;
attribute vec4 at_tangent;
varying vec4 normalMat;
flat varying vec3 WsunVec2;
#endif
//////////////////////////////VOID MAIN//////////////////////////////
@ -76,10 +75,7 @@ vec4 toClipSpace3(vec3 viewSpacePosition) {
//////////////////////////////VOID MAIN//////////////////////////////
void main() {
#ifdef DAMAGE_BLOCK_EFFECT
WsunVec2 = (float(sunElevation > 1e-5)*2.0 - 1.0)*normalize(mat3(gbufferModelViewInverse) * sunPosition);
#endif
lmtexcoord.xy = (gl_MultiTexCoord0).xy;
vec2 lmcoord = gl_MultiTexCoord1.xy / 240.0;
lmtexcoord.zw = lmcoord;