add iris's BLOCK_TRANSLUCENT programs

This commit is contained in:
Xonk
2024-01-11 22:19:34 -05:00
parent 339829f952
commit ce8c674893
9 changed files with 43 additions and 3 deletions

View File

@ -15,6 +15,10 @@ varying vec4 color;
flat varying vec4 lightCol;
#endif
#ifdef BLOCKENTITIES
#undef WATER_REFLECTIONS
#endif
#ifdef ENTITIES
#undef WATER_BACKGROUND_SPECULAR
#undef SCREENSPACE_REFLECTIONS
@ -474,8 +478,6 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
up *= pow( max( WS_normal.y, 0), 2);
down *= pow( max(-WS_normal.y, 0), 2);
AmbientLightColor += up + down;
#endif
#ifdef END_SHADER

View File

@ -104,7 +104,7 @@ void main() {
if (mc_Entity.x == 10002) mat = 0.2;
if (mc_Entity.x == 72) mat = 0.5;
#ifdef ENTITIES
#if defined ENTITIES || defined BLOCKENTITIES
mat = 0.1;
#endif