-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Feature implementation: noLights() #3955
Feature implementation: noLights() #3955
Conversation
@@ -832,4 +832,64 @@ p5.prototype.spotLight = function( | |||
return this; | |||
}; | |||
|
|||
/** | |||
* This function will remove all the lights from the sketch for the | |||
* subsequent materials rendered. It affects all the subsequent methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put a note in here about how to re-enable lights?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this: To Re-enable lights, you need to call the lighting methods again
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "Calls to lighting methods made after noLights()
will re-enable lights in the sketch."
Fixes: #3945
Work done-
noLights()
in /src/webgl/light.js/webgl/lights/noLights/
To do-