Kaynağa Gözat

Unflipped particles.

For some reason point sprites in "natural" orientation are upside down :S
alteredq 13 yıl önce
ebeveyn
işleme
93d96da07e
3 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      build/Three.js
  2. 1 1
      build/custom/ThreeWebGL.js
  3. 1 1
      src/renderers/WebGLShaders.js

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
build/Three.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 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"
 

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor