casmi.graphics.shader.BumpVert.glsl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of casmi Show documentation
Show all versions of casmi Show documentation
2D/3D visualization library for Jav
The newest version!
varying vec3 P;
varying vec3 N;
varying vec3 T;
varying vec3 B;
attribute vec3 tangent;
void main(void)
{
P = vec3(gl_ModelViewMatrix * gl_Vertex);
N = normalize(gl_NormalMatrix * gl_Normal);
T = normalize(gl_NormalMatrix * tangent);
B = cross(N, T);
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = ftransform() ;
}