I am procedurally generating a mesh inside MeshInstance2D and i want to change its transparency, but directly changing the modulate or fragment color of meshinstance cause overlapping issues. I know i could use stencil buffer to fix the blending but it not not present in 4.4 (it is coming to 4.5 but only for spatialmaterial). Is there any other way to fix the overlapping without the use of sub viewport?

  • xyz replied to this.

    Antipinno Overlapping with what? MeshInstance2D is a canvas item. It has all visibility/ordering features other canvas items have.

      xyz basically i am generating a 3d cube, and later using a canvas item shader to translate the bottom vertices,
      This will give you the idea

      • xyz replied to this.
        Antipinno changed the title to [SOLVED] Help with mesh transparency .

        xyz hey thank you very much for your time, i found the solution. Just found out that i could use CanvasGroup to merge the draw call.