mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 23:44:56 +01:00
32 lines
372 B
JavaScript
32 lines
372 B
JavaScript
|
/**
|
||
|
* @author mrdoob / http://www.mrdoob.com
|
||
|
*
|
||
|
* Simple test shader
|
||
|
*/
|
||
|
|
||
|
THREE.BasicShader = {
|
||
|
|
||
|
uniforms: {},
|
||
|
|
||
|
vertexShader: [
|
||
|
|
||
|
"void main() {",
|
||
|
|
||
|
"gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
|
||
|
|
||
|
"}"
|
||
|
|
||
|
].join("\n"),
|
||
|
|
||
|
fragmentShader: [
|
||
|
|
||
|
"void main() {",
|
||
|
|
||
|
"gl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );",
|
||
|
|
||
|
"}"
|
||
|
|
||
|
].join("\n")
|
||
|
|
||
|
};
|