浏览代码

bugfix incoherent precise raycasting

ncannasse 8 年之前
父节点
当前提交
1fb90722d5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/scene/Scene.hx

+ 1 - 0
h3d/scene/Scene.hx

@@ -159,6 +159,7 @@ class Scene extends Object implements h3d.IDrawable implements hxd.SceneEvents.I
 					}
 
 					var p = i.hitPoint.clone();
+					p.w = 1;
 					p.transform3x4(i.absPos);
 					p.project(camera.m);
 					i.hitPoint.w = p.z + wfactor;