Initial project import
This commit is contained in:
27
node_modules/three-stdlib/shaders/BasicShader.js
generated
vendored
Normal file
27
node_modules/three-stdlib/shaders/BasicShader.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
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 );
|
||||
|
||||
}
|
||||
`
|
||||
)
|
||||
};
|
||||
export {
|
||||
BasicShader
|
||||
};
|
||||
//# sourceMappingURL=BasicShader.js.map
|
||||
Reference in New Issue
Block a user