Changing a <Material />
's key
prop doesn't attach new material, remove old one
#615
Open
5 tasks done
Labels
p2-to-be-discussed
Enhancement under consideration (priority)
pending-triage
Ticket is pending to be prioritised
Expected
In this
<template />
...... if changing
:prop
changes the material:key
:Bug
What happens instead
Changing the
:prop
again leads to:Context
Working on updating
MeshReflectionMaterial
from Cientos. It's based on this Drei component.Both components use the
key
prop to force a rerender/recompile. Drei | CientosUsing the
key
to force rerendering/recompiling currently doesn't work in the Cientos component.Rerendering/recompiling the material's shader is required here for full reactivity.
Reproduction
https://stackblitz.com/edit/tresjs-basic-a7wxyh?file=src%2Fcomponents%2FTheExperience.vue
Steps to reproduce
See Stackblitz.
System Info
Used Package Manager
npm
Code of Conduct
The text was updated successfully, but these errors were encountered: