Created
August 15, 2015 09:26
-
-
Save timsgardner/3345ce61661309515d2e to your computer and use it in GitHub Desktop.
not doing it
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
| Shader "geronimo" { | |
| Properties { | |
| wobble ("wobble", Vector) = (0, 0, 0, 0) | |
| } | |
| SubShader { | |
| Pass { | |
| GLSLPROGRAM | |
| #ifdef VERTEX | |
| attribute vec4 wobble; | |
| varying vec4 position; | |
| void main(void){ | |
| (position = (gl_Vertex + wobble)); | |
| (gl_Position = (gl_ModelViewProjectionMatrix * position)); | |
| } | |
| #endif | |
| #ifdef FRAGMENT | |
| varying vec4 position; | |
| void main(void){ | |
| (gl_FragColor = position); | |
| } | |
| #endif | |
| ENDGLSL | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment