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

Feature implementation: noLights() #3955

Merged
merged 10 commits into from
Aug 24, 2019

Conversation

sanketsingh24
Copy link
Contributor

Fixes: #3945

Work done-

  • Implemented noLights() in /src/webgl/light.js
  • Added a manual-test-example in /webgl/lights/noLights/
  • Unit tests
  • Example
  • Documentation

To do-

@@ -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.
Copy link
Contributor

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?

Copy link
Contributor Author

@sanketsingh24 sanketsingh24 Aug 20, 2019

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?

Copy link
Contributor

@aferriss aferriss Aug 21, 2019

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."

@aferriss aferriss merged commit 1e7e210 into processing:master Aug 24, 2019
@sanketsingh24 sanketsingh24 deleted the feature-removelight branch August 24, 2019 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Feature: noLights()
2 participants