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

Possibility for light to ignore specific hulls #11

Closed
Plutis opened this issue Feb 9, 2017 · 3 comments
Closed

Possibility for light to ignore specific hulls #11

Plutis opened this issue Feb 9, 2017 · 3 comments

Comments

@Plutis
Copy link

Plutis commented Feb 9, 2017

Trying to achieve flashlight effect. Having 2 players, both have Hulls and both have Spotlights. Problem is that Player1 Hull blocks its own Spotlight, because Position is inside Hull. Would be nice, to set for color (or for hull), which object to ignore in calculations.

@discosultan
Copy link
Owner

I made a new branch to demonstrate how to easily enable ignoring Hulls for each light separately: 84ed5ef.

Note that this implementation doesn't work correctly atm when you add or remove hulls into the ignored list at runtime (shouldn't be the case for you) - it doesn't mark the dirty flag for the light.

@discosultan
Copy link
Owner

I pushed a new version of Penumbra (1.2.0) to Nuget with the feature enabled. (1115be3) (df52dd3)

@Plutis
Copy link
Author

Plutis commented Feb 14, 2017

Thanks, it works nicely

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