소스 검색

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;