BasicShader.js 376 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @author mrdoob / http://www.mrdoob.com
  3. *
  4. * Simple test shader
  5. */
  6. THREE.BasicShader = {
  7. uniforms: {},
  8. vertexShader: [
  9. "void main() {",
  10. "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
  11. "}"
  12. ].join( "\n" ),
  13. fragmentShader: [
  14. "void main() {",
  15. "gl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );",
  16. "}"
  17. ].join( "\n" )
  18. };