Search Unity

Question Texture + Position not allowed: Not sure if this is a bug

Discussion in 'Shader Graph' started by SuperLemonBits, Jul 4, 2019.

  1. SuperLemonBits

    SuperLemonBits

    Joined:
    Feb 28, 2016
    Posts:
    7
    Hi I am having problems creating a shader with graph and there is something that definitely you can do in code, so I´m not sure if it´s a bug or not.

    The idea is that I want to create a shader that displaces the shader based in a texture, but for some reason I cannot mix the sample of the texture and the position and then assign to the position in the PBR Master.

    Here are some images are a good example of my problem:

    a.png


    b.png

    I´m not sure if there is any kind of types implicit, if I can do a conversion or if is just a bug as I said.

    I am working on LWRP and 2019.1.8f1 and I´ve tried a few things like:
    - Create a new material
    - Restart Unity
    - Add Intermediate nodes (split->Vector3->..., Transform...)

    Without any result,
    Thanks for the help!
     
  2. SuperLemonBits

    SuperLemonBits

    Joined:
    Feb 28, 2016
    Posts:
    7
    Ok, solved I have to use "Sample Texture 2D LOD" instead "Sample Texture 2D"