BasicShader.js 710 B

1234567891011121314151617181920212223242526272829303132
  1. console.warn( "THREE.BasicShader: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/index.html#manual/en/introduction/Import-via-modules." );
  2. /**
  3. * @author mrdoob / http://www.mrdoob.com
  4. *
  5. * Simple test shader
  6. */
  7. THREE.BasicShader = {
  8. uniforms: {},
  9. vertexShader: [
  10. "void main() {",
  11. " gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
  12. "}"
  13. ].join( "\n" ),
  14. fragmentShader: [
  15. "void main() {",
  16. " gl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );",
  17. "}"
  18. ].join( "\n" )
  19. };