preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
29
frontend/node_modules/three/examples/jsm/shaders/BasicShader.js
generated
vendored
Normal file
29
frontend/node_modules/three/examples/jsm/shaders/BasicShader.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* 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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue