Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. particles.vertices.push(new THREE.Vector3((i % texSize)/texSize,
  2.  
  3. // From <script type="x-shader/x-vertex" id="dispVert">
  4. vec3 mvPosition = texture2D(posTex, vec2(x, y)).rgb;
  5. gl_PointSize = 1.0;
  6. gl_Position = projectionMatrix * modelViewMatrix * vec4(mvPosition,1.0);
  7.  
  8. // From <script type="x-shader/x-fragment" id="dispFrag">
  9. gl_FragColor = vec4(vec3(0.5, 1.0, 0.1), 0.05);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement