diff --git a/Shaders/grass-ALS.frag b/Shaders/grass-ALS.frag index 119492d4a..34238f2b9 100755 --- a/Shaders/grass-ALS.frag +++ b/Shaders/grass-ALS.frag @@ -29,9 +29,9 @@ uniform sampler2D densityTex; uniform float osg_SimulationTime; -varying in vec2 g_rawpos; // Horizontal position in model space -varying in float g_distance_to_eye; // Distance to the camera. Layers were disregarded -flat in float g_layer; // The layer where the fragment lives (0-1 range) +varying vec2 g_rawpos; // Horizontal position in model space +varying float g_distance_to_eye; // Distance to the camera. Layers were disregarded +varying float g_layer; // The layer where the fragment lives (0-1 range) float rand2D(in vec2 co); float Noise2D(in vec2 co, in float wavelength); diff --git a/Shaders/grass-ALS.geom b/Shaders/grass-ALS.geom index cebde3705..f53049850 100755 --- a/Shaders/grass-ALS.geom +++ b/Shaders/grass-ALS.geom @@ -12,7 +12,7 @@ varying in vec3 v_normal[3]; varying out vec2 g_rawpos; varying out float g_distance_to_eye; -flat varying out float g_layer; +varying out float g_layer;