From 1c00d1d7d68ce1fbd8f64a23b659577f08e4d782 Mon Sep 17 00:00:00 2001 From: Thorsten Renk Date: Mon, 18 Sep 2017 12:38:19 +0300 Subject: [PATCH] Tentatively make ALS grass shader more palatable to AMD/Radeon --- Shaders/grass-ALS.frag | 6 +++--- Shaders/grass-ALS.geom | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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;