mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
31 lines
374 B
JavaScript
31 lines
374 B
JavaScript
( 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;
|
|
|
|
} )();
|