Browse Source

Unflipped particles.

For some reason point sprites in "natural" orientation are upside down :S
alteredq 13 năm trước cách đây
mục cha
commit
93d96da07e
3 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      build/Three.js
  2. 1 1
      build/custom/ThreeWebGL.js
  3. 1 1
      src/renderers/WebGLShaders.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
build/Three.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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"
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác