You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a MeshInstance3D, assigning a mesh and a material, and setting instance uniforms works as expected. However if the mesh is set again, the instance uniforms stop working until the scene is reloaded.
Does not seem to matter if the material is assigned to the Mesh material, MeshInstance3D material override or the GeometryInstance3D material override.
Steps to reproduce
Load reproduction project with node_3d.tscn
Change the MeshInstance3D's shader uniform "My Uniform" and verify that the shader material modifies the mesh.
Click the root Node3d and increase the "dummy" variable. This is a @tool script so this will trigger the test code that sets a new mesh on the MeshInstance3D node.
Observe that the mesh becomes flat, and the "My Uniform" no longer has any effect on the mesh.
Godot version
v4.0.beta.custom_build [61021c0]
System information
Fedora 36 KDE, RTX 3080
Issue description
Creating a MeshInstance3D, assigning a mesh and a material, and setting instance uniforms works as expected. However if the mesh is set again, the instance uniforms stop working until the scene is reloaded.
Does not seem to matter if the material is assigned to the Mesh material, MeshInstance3D material override or the GeometryInstance3D material override.
Steps to reproduce
Minimal reproduction project
SetUniformOverrideTest.zip
The text was updated successfully, but these errors were encountered: