Initial commit
This commit is contained in:
30
HTML/ThreeJS/node_modules/three/examples/js/shaders/BasicShader.js
generated
vendored
Normal file
30
HTML/ThreeJS/node_modules/three/examples/js/shaders/BasicShader.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
( function () {
|
||||
|
||||
/**
|
||||
* 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 );
|
||||
|
||||
}`
|
||||
};
|
||||
|
||||
THREE.BasicShader = BasicShader;
|
||||
|
||||
} )();
|
||||
Reference in New Issue
Block a user