Skip to content

Top down Camera View #10

@Grootloops33

Description

@Grootloops33

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions