-
Notifications
You must be signed in to change notification settings - Fork 11
Fixes #39 Scene lighting needs improvement #85
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
Conversation
Addressed all the suggestions and fixed a major CSS incompatibility caused by this PR (specifically when I made the controls panel scrollable) and the PR that makes the controls panel resizeable. Couldn't solve this through CSS, so solved it in the _setupResizeHandling function in controls.ts by writing the logic for the cursor there. |
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.
Very nice! Looks so much better! The panda robot finally looks good 😆
Resolves #39 |
This PR adds a Lights folder to give the user the option to manually control the lighting parameters for the three different light sources (Directional, Ambient and Hemispherical) as well as to visualize them using helpers.
For this, there was a need to modify the base CSS class to accommodate the new folder and add make the control panel scrollable and its close button visible.
This way, the user can adjust the lighting settings to their needs depending on the model being viewed.
I also tweaked the initial settings for the lighting to give the models a more "realistic" feel with better contrast and shadows.
For models that are completely white (like the Panda model), changing the background color of the scene (as lighting will have a much less important effect here) is a good solution that improves the contrast and visibility of the object.