animate/webGl/my-threejs-test/node_modules/three/examples/jsm/shaders/BasicShader.js

30 lines
351 B
JavaScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
/**
* Simple test shader
*/
const BasicShader = {
name: 'BasicShader',
uniforms: {},
vertexShader: /* glsl */`
void main() {
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`,
fragmentShader: /* glsl */`
void main() {
gl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );
}`
};
export { BasicShader };