Repository navigation
Add configurable stage light intensity - #391
Merged
Merged
Conversation
cdata
marked this pull request as ready for review
February 28, 2019 02:38
jsantell
approved these changes
Mar 1, 2019
jsantell
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
Quick comment on the primary/secondary 'baseline' for the lights: while I think these settings make sense to balance the overall illumination with PMREM, it seems a bit strange in the scenario where devs have control over the intensity of specifically non-environmental lighting (e.g. a dimly lit environment map, stage lights change drastically when toggling on PMREM). This is a whole can of worms of course that can be kicked down the road a bit. Everything else looks solid 👍
| textureUtils = new TextureUtils(renderer); | ||
| // NOTE(cdata): We need to lower the samples here or else tests that use | ||
| // PMREM have a tendency to time out on iOS Simulator | ||
| textureUtils = new TextureUtils(renderer, {pmremSamples: 4}); |
Contributor
There was a problem hiding this comment.
unfortunate, but no benefit of higher samples here anyway
Contributor
Author
Filed #396 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change proposes adding a
stage-light-intensityattribute/property for configuring the intensity of Three.js ambient/directional lights in the scene.<model-element>user0.0intensity turns off the stage lights;1.0is the current defaults as we know them; there is no upper boundstage-light-intensityoscillating from 0.0 to 6.0stage-light-intensity="1.0"Toggling PMREM on and off