Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Custom Sky example from docs doesn't compile

Discussion in 'High Definition Render Pipeline' started by lmbarns, Mar 28, 2023.

  1. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    I'm trying to implement this example from the docs https://docs.unity3d.com/Packages/c...nition@12.1/manual/Creating-a-Custom-Sky.html

    HDRP 12.1
    Unity 2021.3.20f1

    In the NewSkyRenderer.cs it makes a call to GetSkyIntensity() which doesn't exist.

    Code (CSharp):
    1.  
    2. using UnityEngine.Rendering;
    3. using UnityEngine.Rendering.HighDefinition;
    4. ...
    5. float intensity = GetSkyIntensity(newSky, builtinParams.debugSettings);
    6.  
    Literally copying and pasting the example code.