Portals icon indicating copy to clipboard operation
Portals copied to clipboard

Top down Camera View

Open Grootloops33 opened this issue 5 years ago • 0 comments

Hello!

I've started on a project using precisely this awesome portal feature. However, my project is top down, means I'm dealing with an extra camera to keep track of.

image This is what I'm looking at, for some reason the portal (In top-down view) seems to be displaying the main camera, instead of the player's camera.

However, from the player's camera pov, it's displaying the other end correctly.

Does anyone know how to fix it? Cheers!

Edit: I forgot to mention, that I believe It's most likely to do with line 40 in the portal.shader o.screenpos = ComputeScreenPos(o.vertex) I'm assuming this'll grab the main camera's display. Which I don't want.

Grootloops33 avatar Jan 10 '21 16:01 Grootloops33