source:
data/trunk/shaders/cel.frag
@
4252
| Last change on this file since 4252 was 3542, checked in by bensch, 20 years ago | |
|---|---|
| File size: 223 bytes | |
| Rev | Line | |
|---|---|---|
| [3542] | 1 | uniform sampler1D CelShade; |
| 2 | ||
| 3 | varying vec3 lVec; | |
| 4 | varying vec3 norm; | |
| 5 | ||
| 6 | void 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.










