Created
February 5, 2012 10:42
-
-
Save roxlu/1744684 to your computer and use it in GitHub Desktop.
Light Rays 0.2 - basic shaders
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
| uniform mat4 projection_matrix; | |
| uniform mat4 view_matrix; | |
| attribute vec4 pos; | |
| void main() { | |
| gl_Position = projection_matrix * view_matrix * pos; | |
| } |
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
| void main() { | |
| gl_FragColor = vec4(1.0, 0.0, 0.4, 1.0); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result
