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

Limit the penumbra effect to a specific area? #40

Open
krfgbhoiaeuzr opened this issue Dec 17, 2022 · 2 comments
Open

Limit the penumbra effect to a specific area? #40

krfgbhoiaeuzr opened this issue Dec 17, 2022 · 2 comments

Comments

@krfgbhoiaeuzr
Copy link

Hello,

I'm trying to use penumbra to draw shadows in a sub-section of my game/screen. However, after some experimentation it seems that penumbra always uses the full screen size, as i have to call it before any other draw calls. Is there really no way to limit the affected area to a smaller part of the game window or am I just not thinking about this right?

@RamiMorrar
Copy link

You have to use hulls and reshape light sizes to get it to work the way you intend to.

@RamiMorrar
Copy link

If you put a single light on the screen, it'll fill the entire screen. You have to adjust the size.

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