|
|
|
|
|
|
using (new ProfilingSample(cmd, "DynamicGI.UpdateEnvironment")) |
|
|
|
{ |
|
|
|
// TODO: Properly send the cubemap to Enlighten. Currently workaround is to set the cubemap in a Skybox/cubemap material
|
|
|
|
float intensity = IsSkyValid() ? 1.0f : 0.0f; |
|
|
|
float intensity = IsSkyValid() ? 1.0f : 0.0f; // Eliminate all diffuse if we don't have a skybox (meaning for now the background is black in HDRP)
|
|
|
|
RenderSettings.ambientIntensity = intensity; // fix this to 1, this parameter should not exist!
|
|
|
|
RenderSettings.ambientIntensity = intensity; |
|
|
|
RenderSettings.ambientMode = AmbientMode.Skybox; // Force skybox for our HDRI
|
|
|
|
RenderSettings.reflectionIntensity = intensity; |
|
|
|
RenderSettings.customReflection = null; |
|
|
|