Permalink
Browse files

Unflipped particles.

For some reason point sprites in "natural" orientation are upside down :S
  • Loading branch information...
1 parent 0c0bc54 commit 93d96da07e483029d93785e39a9da6b06dc22bcc @alteredq alteredq committed Jul 5, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 build/Three.js
  2. +1 −1 build/custom/ThreeWebGL.js
  3. +1 −1 src/renderers/WebGLShaders.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -156,7 +156,7 @@ THREE.ShaderChunk = {
"#ifdef USE_MAP",
- "gl_FragColor = gl_FragColor * texture2D( map, gl_PointCoord );",
+ "gl_FragColor = gl_FragColor * texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) );",
"#endif"

0 comments on commit 93d96da

Please sign in to comment.