groworld/plant-eyes/shaders/frtrans.vert.glsl

14 lines
255 B
Text
Raw Normal View History

2009-08-25 09:00:24 +00:00
// simple facing ratio transparency shader
varying vec3 N;
varying vec3 P;
varying vec3 V;
void main()
{
N = normalize(gl_NormalMatrix*gl_Normal);
P = gl_Vertex.xyz;
V = -vec3(gl_ModelViewMatrix*gl_Vertex);
gl_Position = ftransform();
}