Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- particles.vertices.push(new THREE.Vector3((i % texSize)/texSize,
- // From <script type="x-shader/x-vertex" id="dispVert">
- vec3 mvPosition = texture2D(posTex, vec2(x, y)).rgb;
- gl_PointSize = 1.0;
- gl_Position = projectionMatrix * modelViewMatrix * vec4(mvPosition,1.0);
- // From <script type="x-shader/x-fragment" id="dispFrag">
- gl_FragColor = vec4(vec3(0.5, 1.0, 0.1), 0.05);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement