groworld/plant-eyes/shaders/frtrans.vert.glsl
2009-08-25 09:55:32 +01:00

18 lines
444 B
GLSL

// Copyright (C) 2007 Dave Griffiths
// Licence: GPLv2 (see COPYING)
// Fluxus Shader Library
// ---------------------
// Refract/reflect combined with facing ratio, and blinn specular
// (written on a plane from Dresden to Munich)
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();
}