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

Add needsUpdate to Reflector #30569

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Add needsUpdate to Reflector #30569

wants to merge 1 commit into from

Conversation

Shane-oo
Copy link

@Shane-oo Shane-oo commented Feb 20, 2025

Fixed #30568.

Description

Render the Reflector if needsUpdate is set to true

@@ -21,6 +21,7 @@ class Reflector extends Mesh {
this.isReflector = true;

this.type = 'Reflector';
this.needsUpdate = false;
Copy link
Collaborator

@Mugen87 Mugen87 Feb 21, 2025

Choose a reason for hiding this comment

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

The problem with this new flag is that it only works in conjunction with isFacingAway. The reflector might be updated per render even if needsUpdate is set to false. This feels a bit buggy regarding how other needsUpdate flags usually work in the library.

How about renaming it to forceUpdate? The default would still be false but setting it to true forces an update no matter how the reflector is oriented.

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.

Reflector add needsUpdate flag
2 participants