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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

RenderSettings.ambientProbe, am I experiencing a bug?

Discussion in 'General Graphics' started by Simod, Nov 8, 2016.

  1. Simod

    Simod

    Joined:
    Jan 29, 2014
    Posts:
    176
    Hello all,

    Working with v5.4.2f2.

    For some reason RenderSettings.ambientProbe values looks same if I change Ambient Colors in the Lighting window.

    Same problem with the LightProbes.GetInterpolatedProbe - it also returns same values.

    What I am trying to do is to sample SphericalHarmonicsL2 every frame and use it in a custom shader. But if I change Ambient Color settings, it's won't show the changes in the SphericalHarmonicsL2.

    Does it a bug, or intentional feature. How should I sample SphericalHarmonicsL2 in my case then?
     
  2. Simod

    Simod

    Joined:
    Jan 29, 2014
    Posts:
    176
    Update:

    Okay for some reason LightProbes.GetInterpolatedProbe started to work. Yet RenderSettings.ambientProbe still seems broken.
     
  3. namanam

    namanam

    Joined:
    Jul 27, 2013
    Posts:
    8