source:
data/trunk/shaders/toon.vert
@
4019
Last change on this file since 4019 was 3463, checked in by bensch, 19 years ago | |
---|---|
File size: 256 bytes |
Line | |
---|---|
1 | // simple toon vertex shader |
2 | // www.lighthouse3d.com |
3 | |
4 | |
5 | varying vec3 normal, lightDir; |
6 | |
7 | void main() |
8 | { |
9 | lightDir = normalize(vec3(gl_LightSource[0].position)); |
10 | normal = normalize(gl_NormalMatrix * gl_Normal); |
11 | |
12 | gl_Position = ftransform(); |
13 | } |
Note: See TracBrowser
for help on using the repository browser.