With my R9-290 I get the follow error (recent fgdata).
FRAGMENT glCompileShader "e:/temp/fgdata/Shaders/grass-ALS.frag" FAILED
FRAGMENT Shader "e:/temp/fgdata/Shaders/grass-ALS.frag" infolog:
Fragment shader failed to compile with the following errors:
ERROR: 0:32: error(#133) Reserved word: in
ERROR: 0:32: error(#138) "varying in" supported in geometry shaders only
ERROR: 0:33: error(#133) Reserved word: in
ERROR: 0:33: error(#138) "varying in" supported in geometry shaders only
ERROR: 0:34: error(#133) Reserved word: in
ERROR: 0:35: error(#133) Reserved word: in
It doesn't like the following
flat in float g_layer; // The layer where the fragment lives (0-1 range)
flat in int g_num_layers;
With the "in" it complains like this;
FRAGMENT glCompileShader "e:/temp/fgdata/Shaders/grass-ALS.frag" FAILED
FRAGMENT Shader "e:/temp/fgdata/Shaders/grass-ALS.frag" infolog:
Fragment shader failed to compile with the following errors:
ERROR: 0:34: error(#133) Reserved word: in
ERROR: 0:35: error(#133) Reserved word: in
ERROR: error(#273) 2 compilation errors. No code generated
Without it it complains like this:
FRAGMENT glCompileShader "e:/temp/fgdata/Shaders/grass-ALS.frag" FAILED
FRAGMENT Shader "e:/temp/fgdata/Shaders/grass-ALS.frag" infolog:
Fragment shader failed to compile with the following errors:
ERROR: 0:34: error(#393) Qualifier "flat" requires qualifier "in/out"
ERROR: 0:35: error(#393) Qualifier "flat" requires qualifier "in/out"
ERROR: error(#273) 2 compilation errors. No code generated
After some experimentation the following appears to work. I get an error
on the int if I omit flat.
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)
varying flat int g_num_layers;
Note sure if it is working correctly though. It seems to bleed through
onto the hud glass effect; ima