Screen-space to world math for custom props
🖼️ Rendering•Updated 2 days ago•0 views
inverted view matrix * screen coord, scaled by z, then * inverted model matrix - same approach as GMod's context menu; or use numerical derivative methods.
Math for converting screen coords to prop surface (custom prop UVs)
inverted view matrix * screen coord, scaled by z, then * inverted model matrix - same approach as GMod's context menu; or use numerical derivative methods.