Announcement

Collapse
No announcement yet.

Make Texture always orient to one direction (Rain streaks)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Make Texture always orient to one direction (Rain streaks)

    Hi there,
    I am creating a rain streaks effect and I've got the problem that the Texture only aligns to the flat texture.
    Is there a way to make the texture always align to the same direction so the streaks are always running down and not, depending on the UV, upwards or sidewards.

    Greetings
    RRe36

    #2
    You could use a world aligned texture for that. If you look in the particles content example, there's a material function for doing something very similar to what you describe. I can't remember what it's called, but it's used on a lot of the assets in that demo.

    EDIT: I think it has the word "drips" in the name.

    Comment


      #3
      I'll try this. I've also stumbled over the local aligned texture function which might be better for player characters to avoid texture swimming but these two have one common problem: how to connect texture samples to their input. It seems like they only accept texture objects but i need samples because the texture gets panned and resized.

      Comment

      Working...
      X