We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87829cd commit c87d52aCopy full SHA for c87d52a
client/shaders/nodes_shader/opengl_vertex.glsl
@@ -101,8 +101,8 @@ void main(void)
101
102
float disp_x;
103
float disp_z;
104
-#if (MATERIAL_TYPE == TILE_MATERIAL_WAVING_LEAVES && ENABLE_WAVING_LEAVES) || \
105
- (MATERIAL_TYPE == TILE_MATERIAL_WAVING_PLANTS && ENABLE_WAVING_PLANTS)
+// OpenGL < 4.3 does not support continued preprocessor lines
+#if (MATERIAL_TYPE == TILE_MATERIAL_WAVING_LEAVES && ENABLE_WAVING_LEAVES) || (MATERIAL_TYPE == TILE_MATERIAL_WAVING_PLANTS && ENABLE_WAVING_PLANTS)
106
vec4 pos2 = mWorld * gl_Vertex;
107
float tOffset = (pos2.x + pos2.y) * 0.001 + pos2.z * 0.002;
108
disp_x = (smoothTriangleWave(animationTimer * 23.0 + tOffset) +
0 commit comments