Forráskód Böngészése

bugfix incoherent precise raycasting

ncannasse 8 éve
szülő
commit
1fb90722d5
1 módosított fájl, 1 hozzáadás és 0 törlés
  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;