瀏覽代碼

minor fix

bstouls 9 年之前
父節點
當前提交
0b0016d0dd
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/parts/GpuParticles.hx

+ 1 - 0
h3d/parts/GpuParticles.hx

@@ -641,6 +641,7 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 		}
 		if( g.pshader.transform3D ) {
 			var r = ctx.camera.target.sub(ctx.camera.pos);
+			r.z = 0;
 			r.normalize();
 			var q = new h3d.Quat();
 			q.initDirection(r);