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

object receives light from lamp in other layer #831

Closed
lordloki opened this issue Sep 11, 2018 · 1 comment
Closed

object receives light from lamp in other layer #831

lordloki opened this issue Sep 11, 2018 · 1 comment

Comments

@lordloki
Copy link
Member

lordloki commented Sep 11, 2018

When I pass the lamp to other layer I continues receiving light from that lamp
image
Example file: http://pasteall.org/blend/index.php?id=50327

0.2.3 works right, I think that it comes from c024480 commit

panzergame added a commit that referenced this issue Sep 11, 2018
Previously the layer send to the shader is non-zero and so checked with object
layer when:
The lamp is visible OR the lamp is in view layers.

But the correct behaviour is:
The lamp is visible AND the lamp is in view layers.

So that all lamps in layers not selected by view will not affect any objects
even one sharing a layer with the lamp.

To restore this behaviour the dynlayer is set to 0 also when
lamp->lay & viewlay is 0.

Fix issue: #831.
@lordloki
Copy link
Member Author

Great!! Now works as expected!
Good work!

youle31 pushed a commit that referenced this issue May 26, 2019
Previously the layer send to the shader is non-zero and so checked with object
layer when:
The lamp is visible OR the lamp is in view layers.

But the correct behaviour is:
The lamp is visible AND the lamp is in view layers.

So that all lamps in layers not selected by view will not affect any objects
even one sharing a layer with the lamp.

To restore this behaviour the dynlayer is set to 0 also when
lamp->lay & viewlay is 0.

Fix issue: #831.
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