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

fix (mtoon): fix an error on mtoon shader that occurs when there are multiple lights #801

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Aug 30, 2021

will resolve #794

Description

Certain variables related to lighting are defined inside of unroll loop which causes redifinition errors,
and it only happens when there are multiple lights.
This PR will fix this.

Points need review

I think the change is pretty obvious.

@0b5vr 0b5vr added the bug Something isn't working label Aug 30, 2021
@0b5vr 0b5vr added this to the next milestone Aug 30, 2021
@0b5vr 0b5vr self-assigned this Aug 30, 2021
@0b5vr 0b5vr merged commit 6c9d9c5 into dev Sep 1, 2021
@0b5vr 0b5vr deleted the fix-multiple-lights branch September 1, 2021 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebGL Error when using multiple lights
1 participant