1
0
Fork 0

Tentatively make ALS grass shader more palatable to AMD/Radeon

This commit is contained in:
Thorsten Renk 2017-09-18 12:38:19 +03:00
parent 7537a91402
commit 1c00d1d7d6
2 changed files with 4 additions and 4 deletions

View file

@ -29,9 +29,9 @@ uniform sampler2D densityTex;
uniform float osg_SimulationTime; uniform float osg_SimulationTime;
varying in vec2 g_rawpos; // Horizontal position in model space varying vec2 g_rawpos; // Horizontal position in model space
varying in float g_distance_to_eye; // Distance to the camera. Layers were disregarded varying 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 float g_layer; // The layer where the fragment lives (0-1 range)
float rand2D(in vec2 co); float rand2D(in vec2 co);
float Noise2D(in vec2 co, in float wavelength); float Noise2D(in vec2 co, in float wavelength);

View file

@ -12,7 +12,7 @@ varying in vec3 v_normal[3];
varying out vec2 g_rawpos; varying out vec2 g_rawpos;
varying out float g_distance_to_eye; varying out float g_distance_to_eye;
flat varying out float g_layer; varying out float g_layer;