Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/terrain/shaders/cel.frag @ 3955

Last change on this file since 3955 was 3542, checked in by bensch, 19 years ago

data: new shaders

File size: 223 bytes
Line 
1uniform sampler1D CelShade;
2
3varying vec3 lVec;
4varying vec3 norm;
5
6void main(){
7        vec3 lightVec = normalize(lVec);
8        float diffuse = dot(lightVec, norm);
9
10        gl_FragColor = texture1D(CelShade, diffuse);
11}
Note: See TracBrowser for help on using the repository browser.