Search Unity

Question ShaderGraph in VFX graph doesnt support Normal map?

Discussion in 'Visual Effect Graph' started by Ratatuj306, Oct 11, 2022.

  1. Ratatuj306

    Ratatuj306

    Joined:
    Jan 23, 2021
    Posts:
    1
    Hi everyone, I'm trying to create a VFX graph with a custom shader graph but I don't see the normal map option in the shader graph.
     

    Attached Files:

  2. Marie_G

    Marie_G

    Unity Technologies

    Joined:
    Mar 9, 2021
    Posts:
    76
    Hi, to create a normal map in Shader Graph you can use a texture 2D and change its mode to normal map, and then use a Sample Texture 2D, once again set as normal map.
    To access shader graph properties in visual effect graph, you have to expose them in the shader using the blackboard. So here, to access Shader graph's normal map slot in vfx you have to create a texture 2D property in the blackboard and set it as normal, and then expose it. It will appear in VFX Graph. You can name your texture "Normal Map" in shader graph's blackboard to make sure to not mistake it with the other texture used.
    upload_2022-10-11_17-11-51.png

    Does that solve your issue?