-
-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Open
Description
Tested versions
- Reproducible in 4.5.beta3
System information
Godot v4.5.beta3.mono - Windows 11 (build 26100) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 (NVIDIA; 32.0.15.6094) - 13th Gen Intel(R) Core(TM) i5-13500 (20 threads) - 31.78 GiB memory
Issue description
When using duplicate()
on a StandardMaterial3D
, its stencil material properties are on the next_pass
material, which is not duplicated (this is expected, because we're not using deep_duplicate()
). This results in changes of the stencil properties on one material affecting both materials. However, if you retrieve the stencil properties on the material that was not explicitly altered, you get their previous value.
Steps to reproduce
- Create a
StandardMaterial3D
- Set
stencil_mode
toSTENCIL_MODE_OUTLINE
orSTENCIL_MODE_XRAY
- Create another
StandardMaterial3D
usingduplicate()
- Change the value of
stencil_color
orstencil_outline_thickness
- Assign the materials to 2 different meshes
- Print the values of the changed properties in both materials
- Same properties on both meshes can be observed, but different values were printed
Minimal reproduction project (MRP)
Metadata
Metadata
Assignees
Type
Projects
Status
For team assessment