penumbra icon indicating copy to clipboard operation
penumbra copied to clipboard

Limit the penumbra effect to a specific area?

Open krfgbhoiaeuzr opened this issue 2 years ago • 2 comments

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?

krfgbhoiaeuzr avatar Dec 17 '22 13:12 krfgbhoiaeuzr

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

RamiMorrar avatar Jun 20 '23 22:06 RamiMorrar

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

RamiMorrar avatar Jun 20 '23 22:06 RamiMorrar