Cesium-Examples/three/examples/jsm/shaders/BasicShader.js
2025-03-11 17:51:04 +08:00

28 lines
328 B
JavaScript

/**
* Simple test shader
*/
const 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 };