Tentatively make ALS grass shader more palatable to AMD/Radeon
This commit is contained in:
parent
7537a91402
commit
1c00d1d7d6
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue