Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script id="vertShader" type="shader">
- varying vec2 vUv;
- varying vec3 vecPos;
- void main() {
- vUv = uv;
- vecPos = (modelViewMatrix * vec4(position, 1.0)).xyz;
- gl_Position = projectionMatrix * vec4(vecPos, 1.0);
- }
- </script>
- <script id="fragShader" type="shader">
- uniform sampler2D textureSampler;
- void main(void) {
- gl_FragColor = vec4(0.,1.,0.,1.);
- }
- </script>
Add Comment
Please, Sign In to add comment