BasicShader.js 328 B

123456789101112131415161718192021222324252627
  1. /**
  2. * Simple test shader
  3. */
  4. const BasicShader = {
  5. uniforms: {},
  6. vertexShader: /* glsl */`
  7. void main() {
  8. gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
  9. }`,
  10. fragmentShader: /* glsl */`
  11. void main() {
  12. gl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );
  13. }`
  14. };
  15. export { BasicShader };