I'm trying to perform a basic vertex displacement by means of a horizontal gradient:

Vertex displacement setup

I'm using an on-the-fly created plane mesh. Most of this process is clear to me. I'm not understanding where the weird folds at the beginning and the end are coming from and when it should be a smooth transition from beginning to end.

Settings of the texture:

enter image description here

  • \$\begingroup\$ What Godot version is this? I see a Flags section under Repeat on mine, but I don't see it on the screenshot. \$\endgroup\$
    – Theraot
    Commented Oct 11, 2022 at 22:20
  • \$\begingroup\$ @Theraot its the latest Beta of Godot 4 , im running on windows 11 \$\endgroup\$ Commented Oct 12, 2022 at 9:57

1 Answer 1


Ok, with the help of some Redditor i solved it. The problem is that one cant disable repeat on the texture itself, but has to do a round trip via an input param on which the repeat can be disabled: enter image description here

Then the gradient texture can be set as a value for the input param on the object which received the shader as material. Also the type has to be set to color - not data


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .