All Downloads are FREE. Search and download functionalities are using the official Maven repository.

casmi.graphics.shader.BumpVert.glsl Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy