Skip to content

overrideMaterial for nested scenes #18342

@nullEuro

Description

@nullEuro

It is possible to add a scene to another scene. However, setting an overrideMaterial on a nested scene has no effect. Only the overrideMaterial of the root scene is honored (and changes the material of children of nested scenes also as expected).

I expected (and am suggesting now) that it is possible to set an overrideMaterial on any scene, and that it overrides the overrideMaterial of parent scenes. Though that may be debatable. But the documentation in this regard could be improved in either case.

My use case: I have several Sub-Scenes loaded from different GLTF files in my root scene, and want to highlight specific ones under certain conditions with a special material.

Live Demo

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions