Hello!
Godot version 3.5.stable. Multi-pass material duplicates geometry for me. Each material pass creates another visible mesh instance.
I'm trying to apply a geometric transform to meshes via a vertex() shader material function applying it as a second pass. However, instead of being applied to the mesh it duplicates a mesh. And I have two meshes: one before the transform, the other one after the transform.
The geometry modifying shader is trivial:
shader_type spatial;
void vertex()
{
vec3 v = VERTEX;
vec3 vert = vec3(v.x + 100.0, v.y, v.z);
VERTEX = vert;
}
How should I implement the two pass material correctly so that the 2-d shader modifies the result of the first one? Now it duplicates it for some reason.
I'd appreciate any advice! Thank you!