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

Multiple Cameras / Viewports Support #12

Open
Irrelon opened this issue Dec 30, 2021 · 1 comment
Open

Multiple Cameras / Viewports Support #12

Irrelon opened this issue Dec 30, 2021 · 1 comment

Comments

@Irrelon
Copy link

Irrelon commented Dec 30, 2021

Hey, I downloaded and tried this lighting system yesterday, it's really fantastic work! Thank you so much for open-sourcing it!

I did have a quick question though as I've only started using GMS2 a few days ago so I'm not mega-familiar with it yet... (although I have written an entire game engine myself (see https://github.com/irrelon/ige) so I'm not a noob either).

Does the lighting system support multiple viewports? I tested with a multi-viewport game but I am seeing a weird effect where the second viewport's shadows follow the position of the first viewport's camera.

I had a look in the lighting system source code and it looks like it should work because it's getting the active camera at time of render but I'm obviously missing something!

On the left viewport (the first vp and camera) the shadows look fine. On the second on the right, they are offset by the position of the left viewport's camera.

Here's a pic of what I mean:

Screenshot (1)

@DriftWare07
Copy link

Bro this repo is dead. Maybe ask on the gamemaker studio discord server?

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

2 participants