Skip to content

Instantly share code, notes, and snippets.

@timsgardner
Created August 15, 2015 09:26
Show Gist options
  • Select an option

  • Save timsgardner/3345ce61661309515d2e to your computer and use it in GitHub Desktop.

Select an option

Save timsgardner/3345ce61661309515d2e to your computer and use it in GitHub Desktop.
not doing it
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