Created
November 15, 2017 11:38
-
-
Save jmg-duarte/5f4a35536e3abc1fd95cd3e41b87e241 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
attribute vec4 vPosition; | |
attribute vec4 vNormal; | |
uniform mat4 mProjection; | |
uniform mat4 mModelView; | |
varying vec4 fPosition; | |
void main(){ | |
fPosition = vPosition; | |
gl_Position = mProjection * mModelView * (vPosition + 0.2 * vNormal); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment