Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top down Camera View #10

Open
Grootloops33 opened this issue Jan 10, 2021 · 0 comments
Open

Top down Camera View #10

Grootloops33 opened this issue Jan 10, 2021 · 0 comments

Comments

@Grootloops33
Copy link

Grootloops33 commented Jan 10, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant