Last active
August 29, 2015 14:10
-
-
Save philipnilsson/c3a082fb2dc27f0a39cd 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
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