Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Radial movement for noise inside shader

Discussion in 'Shader Graph' started by ph4ntomz, Jun 3, 2020.

  1. ph4ntomz

    ph4ntomz

    Joined:
    Jul 22, 2016
    Posts:
    37
    Hi guys,

    I'm currently trying to learn 3D VFX and run into the same issue I ran into a while back. I have created a tear like shape (stretched sphere with bottom cut off) and created the UV map in a way that represents a circle (similar to the top of the mesh). I created the UVs like that in order to prevent the mesh from ripping apart when I animate them with vertex displacement.

    The problem I face now is that I want to create a noise pattern to create the desired vertex displacement, but the only scrolling of textures I have done so far is from left to right or top to bottom etc. however this time I would need the noise to move in a radial manner from inside to outside.

    This must be a very common problem and I wonder how I can solve this? If the answer is to create a different UV map then I would be fine with that as well. My end goal is to use vertex displacement to make the shape wobble a bit to give the impression of a flame.



    cheers!
     
    Last edited: Jun 3, 2020
  2. ph4ntomz

    ph4ntomz

    Joined:
    Jul 22, 2016
    Posts:
    37
    I stumbled upon the solution myself by accident. Using polar coordinates did exactly what I wanted:

     
    florianBrn likes this.