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.

Question [SOLVED] Accessing HDRP Lit Material Emission Inputs parameters...

Discussion in 'High Definition Render Pipeline' started by eloi-maduell, Nov 24, 2022.

  1. eloi-maduell

    eloi-maduell

    Joined:
    Dec 30, 2014
    Posts:
    6
    Hi !

    I would like to understand how could I access the parameters of HDRP Lit Shader Material that are related with the "Emission Inputs" section of the material/shader.

    I'm interested on being able to change on runtime the parameters
    "Tiling" and "Offset" of the Emission Map.



    I've found in the properties of the shader "_EmissiveColorMap" but not sure if that's the actual Texture of the Emission and if from that texture I might be able to tweak the "Tiling" and "Offset".

    Any hints on where to find information on how to access those internal parameters of the build in HDRP Lit shader ? I get confused on which is the proper information resource for this questions ...
     

    Attached Files:

  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    530
    akent99 likes this.
  3. eloi-maduell

    eloi-maduell

    Joined:
    Dec 30, 2014
    Posts:
    6
    Thanks a lot Remy_Unity !

    I find out another easy way around with Shader Graph. I basically made a Shader Graph from the shader that I was using (HDRP Unlit) and exposed on the graph the parameters of Offset and Tiling, so I can acces them also from my script, so 2 optional solutions :) (I'm attaching a screenshot of my ShaderGraph version)
     

    Attached Files: