Skip to content

Commit c87d52a

Browse files
committedApr 18, 2020
Shaders: Complete 478e753. OpenGL 4.3 compatiblity
1 parent 87829cd commit c87d52a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎client/shaders/nodes_shader/opengl_vertex.glsl

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ void main(void)
101101

102102
float disp_x;
103103
float disp_z;
104-
#if (MATERIAL_TYPE == TILE_MATERIAL_WAVING_LEAVES && ENABLE_WAVING_LEAVES) || \
105-
(MATERIAL_TYPE == TILE_MATERIAL_WAVING_PLANTS && ENABLE_WAVING_PLANTS)
104+
// OpenGL < 4.3 does not support continued preprocessor lines
105+
#if (MATERIAL_TYPE == TILE_MATERIAL_WAVING_LEAVES && ENABLE_WAVING_LEAVES) || (MATERIAL_TYPE == TILE_MATERIAL_WAVING_PLANTS && ENABLE_WAVING_PLANTS)
106106
vec4 pos2 = mWorld * gl_Vertex;
107107
float tOffset = (pos2.x + pos2.y) * 0.001 + pos2.z * 0.002;
108108
disp_x = (smoothTriangleWave(animationTimer * 23.0 + tOffset) +

0 commit comments

Comments
 (0)
Please sign in to comment.