Hello. Nice to meet you all. Im working on a small project for myself and Im still learning. I found a nice 3D animation with shader (https://godotshaders.com/shader/procedural-cyclic-slash/). Here you can find the entire .gdshader code as well.

I rebuild it, but for 2D MeshInstance2D, because Im working on a 2D project. The preview in MeshInstance2D (und Mesh "QuadMesh") the animation is perfectly shown. But in the scene preview and running scene I just see a white block. ChatGPT didnt really found a way to help me.

I added the shadermaterial directly to the QuadMesh and not to Material of the Node. I tried it as well that way.
I set "Derive Progress" to -1 so that the animation is just running.

Im very new and do not understand why I cant see the animation in the scene.

Let me know which other information I need to provide you.
Thank you.

  • xyz replied to this.

    flollie The shader requires several gradient texture and a noise texture as its input. Did you set those up as described in shader's usage instructions?

      xyz Hello. Yes. I did exactly like described and the preview is as well looking exactly like shown (even with MeshInstance2D instead of MeshInstance3D). You can see the several gradients in my node:

      • xyz replied to this.
        • Edited

        flollie Afaik 2D mesh instances require a material with a 2d shader (canvas_item) assigned to their material property. The shader code you've got is a 3d shader (spatial). So it won't work. It could be adapted but that'd require some interventions in the code.

          xyz Ohh. That makes sense. I will try to figure out how to do that.
          Thank you 🙂