Skip to content

Instantly share code, notes, and snippets.

@philipnilsson
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipnilsson/c3a082fb2dc27f0a39cd to your computer and use it in GitHub Desktop.
Save philipnilsson/c3a082fb2dc27f0a39cd to your computer and use it in GitHub Desktop.
vShader :: SC.Shader GLfloat
vShader = do
pos <- attribute vec3 "position"
a_color <- attribute vec3 "a_color"
color <- varying vec3 "color"
gl_Position =: pos .: 1
color =: pos
fShader :: SC.Shader GLfloat
fShader = do
color <- varying vec3 "color"
gl_FragColor =: color .: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment