Skip to content

Instantly share code, notes, and snippets.

@shole
Created July 22, 2015 16:14
Show Gist options
  • Save shole/bb10ceb49706a609bce9 to your computer and use it in GitHub Desktop.
Save shole/bb10ceb49706a609bce9 to your computer and use it in GitHub Desktop.
uniform vec3 viewVector;
uniform float c;
uniform float p;
varying float intensity;
void main()
{
intensity=c-(normalMatrix*normal).z;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment