Skip to content

Reflector add needsUpdate flag #30568

@Shane-oo

Description

@Shane-oo

Description

We have a scene of an inside of a house, currently when in the kitchen everything is running smooth, but when the client moves towards the bathroom they encounter a massive lag.

This is due to the reflector in the bathroom acting as a mirror. The reflector has a condition where if the reflector is not facing the camera then the render wont occur, so when we first see the mirror theres a delay because this is the first time the render is occurring.

if ( view.dot( normal ) > 0 ) return;

Solution

Include a needsUpdate flag in the Reflector class so that we can do a pre-render so that the first initial time seeing the Reflector there is no jump

Alternatives

Not sure, whatever other options I'm happy to hear

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions