šŸ’¬

Community answer

Collected from the ACE community Discord archive around 2024-01-30. 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

Portal effect with viewMatrix and renderView

šŸ–¼ļø RenderingUpdated 2 days ago•0 views
Get the player's view transform local to the portal they're looking at, rotate 180 degrees on the Z axis, transform that to world coords relative to the other p…

How to use viewMatrix and renderView for a portal-style effect

Get the player's view transform local to the portal they're looking at, rotate 180 degrees on the Z axis, transform that to world coords relative to the other portal for the renderview camera transform, render the scene to a rendertarget, then draw that RT on the destination portal surface.

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.