Derpius / VisTrace

Garry's Mod binary module for tracing meshes at high speed on the CPU (and much more)
https://derpius.github.io/VisTrace
MIT License
27 stars 1 forks source link

[bug] Hit normals for meshes currently MeshVertex dependant #1

Closed Derpius closed 3 years ago

Derpius commented 3 years ago

Describe the bug MeshVertex structs may not have normals stored in them, this currently would set the normal to Vector(0)

Expected behaviour A geometric normal would be calculated using the 3 points on the tri and the winding order

Additional context https://wiki.facepunch.com/gmod/Structures/MeshVertex

Derpius commented 3 years ago

Fixed in 1754db7ef3f3a72083e0f23b5523f3383eb7ef92