Created
September 11, 2017 18:29
-
-
Save wrr/a50c00de697ef9cb72d01cbea54c056a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
vec3 lightW = normalize(cameraPosition - vPositionW.xyz); | |
gl_FragColor.rgb = color * max(dot(normalize(vNormalW), lightW), 0.0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment