Przeglądaj źródła

Unflipped particles.

For some reason point sprites in "natural" orientation are upside down :S
alteredq 13 lat temu
rodzic
commit
93d96da07e
3 zmienionych plików z 3 dodań i 3 usunięć
  1. 1 1
      build/Three.js
  2. 1 1
      build/custom/ThreeWebGL.js
  3. 1 1
      src/renderers/WebGLShaders.js

Plik diff jest za duży
+ 1 - 1
build/Three.js


Plik diff jest za duży
+ 1 - 1
build/custom/ThreeWebGL.js


+ 1 - 1
src/renderers/WebGLShaders.js

@@ -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"
 

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików