Drawing a prop/hologram into a render target material
🧠 Logic•Updated 2 days ago•0 views
The 'render' hook has a 3D context so holo:draw() works directly; once you selectRenderTarget you only have a 2D context - use render.pushViewMatrix with type="…
How to draw a prop to a material on a screen / inside a render target
The 'render' hook has a 3D context so holo:draw() works directly; once you selectRenderTarget you only have a 2D context - use render.pushViewMatrix with type="3D" plus origin/angles keys to specify the view, then draw, then popViewMatrix. The holo_draw example works if you change drawhud to render. RenderTargets are limited (20 by default) and each material needs its own RT - don't reuse one name.