mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Made iRay sorted to find proper hit
This commit is contained in:
parent
17f4adb518
commit
d105aa08ea
@ -55,6 +55,7 @@ class PandaTextDropTarget(wx.TextDropTarget):
|
|||||||
v.normalize()
|
v.normalize()
|
||||||
return v.dot(n) >= 0
|
return v.dot(n) >= 0
|
||||||
|
|
||||||
|
iRay.sortEntries()
|
||||||
for entry in iRay.getEntries():
|
for entry in iRay.getEntries():
|
||||||
if isEntryBackfacing(iRay, entry):
|
if isEntryBackfacing(iRay, entry):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user