Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created February 5, 2012 10:42
Show Gist options
  • Select an option

  • Save roxlu/1744684 to your computer and use it in GitHub Desktop.

Select an option

Save roxlu/1744684 to your computer and use it in GitHub Desktop.
Light Rays 0.2 - basic shaders
uniform mat4 projection_matrix;
uniform mat4 view_matrix;
attribute vec4 pos;
void main() {
gl_Position = projection_matrix * view_matrix * pos;
}
void main() {
gl_FragColor = vec4(1.0, 0.0, 0.4, 1.0);
}
@roxlu
Copy link
Author

roxlu commented Feb 5, 2012

result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment