This commit is contained in:
Daniel
2026-04-01 19:57:47 +08:00
parent 1d0e0430ab
commit 53d17883ac
4505 changed files with 1659892 additions and 6 deletions

36
node_modules/three/examples/jsm/shaders/BasicShader.js generated vendored Normal file
View File

@@ -0,0 +1,36 @@
/**
* @module BasicShader
* @three_import import { BasicShader } from 'three/addons/shaders/BasicShader.js';
*/
/**
* Simple shader for testing.
*
* @constant
* @type {ShaderMaterial~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 };