diff options
Diffstat (limited to 'shaders/snow.frag')
-rw-r--r-- | shaders/snow.frag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shaders/snow.frag b/shaders/snow.frag new file mode 100644 index 0000000..d494633 --- /dev/null +++ b/shaders/snow.frag @@ -0,0 +1,13 @@ +#version 150 +#extension GL_ARB_explicit_attrib_location : enable +#extension GL_ARB_explicit_uniform_location : enable + +layout(location = 0) out vec4 frag_color ; + +in float rad ; + +uniform vec4 globalAmbient ; + +void main() { + frag_color = vec4( 1.0,1.0,1.0,(9 - rad*rad)/9) * vec4(normalize(globalAmbient.xyz),globalAmbient.a) ; +} |