Skip to content

Instantly share code, notes, and snippets.

@jmg-duarte
Created November 15, 2017 11:38
Show Gist options
  • Save jmg-duarte/5f4a35536e3abc1fd95cd3e41b87e241 to your computer and use it in GitHub Desktop.
Save jmg-duarte/5f4a35536e3abc1fd95cd3e41b87e241 to your computer and use it in GitHub Desktop.
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