Portal effect with viewMatrix and renderView
š¼ļø Renderingā¢Updated 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.