Search Unity

Manually edit RenderSettings.ambientProbe and use in unlit shaders

Discussion in 'Shaders' started by wizgrav, Dec 25, 2019.

  1. wizgrav

    wizgrav

    Joined:
    Mar 16, 2014
    Posts:
    5
    Hi, I'm trying to achieve a stylized look without using most of unity's lighting pipeline. Still I would like to use the spherical harmonics functionality provided.

    Basically i'm editing the values of RenderSettings.ambientProbe manually (like ambientProbe[i,j] = ...) in update() and would like to evaluate the SH in a skybox shader(or a custom unlit shader on a sphere encompassing the scene) using ShadeSH9. I also want to evaluate the SH in unlit shaders on gameobjects for reflections.

    So far I didn't have any success with that Could someone point me on what I need to do to achieve this? I'm quite new at unity but I have experience with shaders, mostly in glsl
     
  2. wizgrav

    wizgrav

    Joined:
    Mar 16, 2014
    Posts:
    5
    Never mind I implemented it manually