1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/node_modules/three/examples/js/shaders/BasicShader.js
2023-12-11 11:59:56 -03:00

29 lines
331 B
JavaScript

/**
* 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' )
};