Browsing StarfallEx's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2022-10-31. It may be informal or outdated — anyone can edit this page to improve it. This topic changes between game versions — double-check before relying on it. Original discussion

Creating a Starfall render target

⭐ StarfallUpdated 2 days ago•1 views
Create the RT with render.createRenderTarget("name"), clear it immediately with render.clear(Color(0,0,0,0)) inside a renderoffscreen hook via render.selectRend…

How to create a rendertarget with something on it in Starfall

Create the RT with render.createRenderTarget("name"), clear it immediately with render.clear(Color(0,0,0,0)) inside a renderoffscreen hook via render.selectRenderTarget so it's transparent, draw your content into it the same way (it doesn't need redrawing every frame for static HUD parts), then in a render hook use render.setRenderTargetTexture("name") + render.drawTexturedRect to draw it to screen.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.