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

19 lines
444 B
Text
Raw Normal View History

// 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();
}