Search Unity

Question Masking Position Node not possible with texture?

Discussion in 'Shader Graph' started by Flow-Fire-Games, Aug 13, 2019.

  1. Flow-Fire-Games

    Flow-Fire-Games

    Joined:
    Jun 11, 2015
    Posts:
    305
    Hey
    So I have this weird issue I don't understand

    I have a wind shader that works well, but now I want to mask the effect of the position offset with a texture

    If I mask it with a noise or anything, it works
    But with a grayscale texture (which should be the same as a grayscale noise in effect) does not work at all. I am pretty sure I need to do some type of conversion but have no idea which

    I did try various conversion nodes like split etc but to no effect. Nothing made the texture compatible.
    "Cannot map expression vs_5_0 instruction set"
    The odd thing is that the shader graph does display the outcome I want in the node previews, but the result does not work.

    What am I missing?



    (Top dosnt work, bottom noise works as a mask)

    Here is a longer gif of the whole thing and in motion:

    https://gifyu.com/image/hsnx
     
    Last edited: Aug 13, 2019
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Flow-Fire-Games likes this.