Download node_modules/three/examples/jsm/shaders/BasicShader.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 351 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/examples/jsm/shaders/BasicShader.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/examples/jsm/shaders/BasicShader.js
-
curl -L -o BasicShader.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/examples/jsm/shaders/BasicShader.js
351 Bytes
| /** | |
| * Simple test shader | |
| */ | |
| const BasicShader = { | |
| name: '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 }; | |