You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
376 B
32 lines
376 B
/**
|
|
* @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" )
|
|
|
|
};
|