Search Unity

Question Double Sided Global Illumination not always available

Discussion in 'Scripting' started by Robster95, Mar 1, 2023.

  1. Robster95

    Robster95

    Joined:
    Jul 3, 2019
    Posts:
    154
    I have had some problems with the lighting in unity for some time now and learned about ticking the "Double Sided Global Illumination" option underneath the "Enable GPU Instancing" option on materials. It turns out this helps lessen or remove artifacts from being made while baking lights.

    However I noticed I can only see this tick on shaders for assets I have downloaded and it does not appear whenever I create my own material.

    How do I make it so I can access this option on materials when I do not see the box.

    I am using Unity 2021.3.2f1 and using URP.

    Here is an example of the shader with the Double Sided Global Illumination option.
    upload_2023-3-1_1-7-1.png

    and here is an example of a new material I created that does not have access to that option.
    upload_2023-3-1_1-7-13.png
     

    Attached Files:

  2. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    It's not visible by default in the inspector.
    But for many (most?) shaders, it will still show up if you set the inspector to Debug-Mode:
    upload_2023-3-1_10-24-52.png
     
  3. Robster95

    Robster95

    Joined:
    Jul 3, 2019
    Posts:
    154
    Oh ok! Is it only for shaders or is it available for materials as well?
     
  4. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    That is the inspector for a material ;)
    The shader is in line 3