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

Examples: Clean up #22829

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Examples: Clean up #22829

merged 1 commit into from
Nov 15, 2021

Conversation

WestLangley
Copy link
Collaborator

No description provided.

@WestLangley WestLangley added this to the r135 milestone Nov 14, 2021
@@ -87,7 +87,7 @@

const planeGeometry = new THREE.PlaneGeometry( 2000, 2000 );
planeGeometry.rotateX( - Math.PI / 2 );
const planeMaterial = new THREE.ShadowMaterial( { opacity: 0.2 } );
const planeMaterial = new THREE.ShadowMaterial( { color: 0x000000, opacity: 0.2 } );
Copy link
Collaborator

@Mugen87 Mugen87 Nov 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x000000 is already the default. I would remove this addition since it's a less verbose coding style.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ShadowMaterial, color is used to control the color -- and intensity -- of the shadow. This helps users see that it is an option, since it is not at all obvious.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me yes.

@mrdoob mrdoob merged commit 4be7511 into mrdoob:dev Nov 15, 2021
@mrdoob
Copy link
Owner

mrdoob commented Nov 15, 2021

Thanks!

@WestLangley WestLangley deleted the dev_cleanup branch November 15, 2021 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants