aboutsummaryrefslogtreecommitdiff
path: root/shaders/snow.frag
blob: d494633bc59341f9503963de14ca5678858ed530 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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) ;
}