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

Why to use ReLU in lighting module? #24

Open
xinwen-cs opened this issue Jul 29, 2019 · 0 comments
Open

Why to use ReLU in lighting module? #24

xinwen-cs opened this issue Jul 29, 2019 · 0 comments

Comments

@xinwen-cs
Copy link

Hi!
I don't understand this line in lighting.py, why you use relu after calculating the inner product between face normals and light direction.
cos = cf.relu(cf.sum(normals * direction, axis=2))

Hope for answering,
Thanks!

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