daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest May 16th, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script id="vertShader" type="shader">
  2.  
  3. varying vec2 vUv;
  4. varying vec3 vecPos;
  5.  
  6. void main() {
  7.   vUv = uv;
  8.   vecPos = (modelViewMatrix * vec4(position, 1.0)).xyz;
  9.   gl_Position = projectionMatrix * vec4(vecPos, 1.0);
  10. }
  11. </script>
  12. <script id="fragShader" type="shader">
  13.  
  14. uniform sampler2D textureSampler;
  15. void main(void) {
  16.   gl_FragColor = vec4(0.,1.,0.,1.);  
  17. }
  18. </script>
RAW Paste Data
Top