Created
July 22, 2015 16:14
-
-
Save shole/bb10ceb49706a609bce9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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