Skip to content

Instantly share code, notes, and snippets.

@mrdoob
Created December 12, 2010 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrdoob/738053 to your computer and use it in GitHub Desktop.
Save mrdoob/738053 to your computer and use it in GitHub Desktop.
'new' : {
uniforms: {},
vertex_shader: [
"void main() {",
"gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
"}"
].join("\n"),
fragment_shader: [
"void main() {",
"gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );",
"}"
].join("\n")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment