webvr js meetup initial commit
This commit is contained in:
31
node_modules/three/examples/js/shaders/BasicShader.js
generated
vendored
Normal file
31
node_modules/three/examples/js/shaders/BasicShader.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @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" )
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user