Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed atmospheric scattering being incorrectly enabled when scene lighting is disabled.
- Fixed error thrown when layered lit material has an invalid material type.
- Fixed a nullref when enabling raycount without ray tracing.
- Fixed an issue where forced sky update (like PBR sky amortized updated) would not update ambient probe.

## [10.7.0] - 2021-07-02

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,15 +762,14 @@ public void UpdateEnvironment(HDCamera hdCamera,
// Debug.Log("Update Sky Lighting");
RenderSkyToCubemap(skyContext);

if (updateAmbientProbe&& !renderingContext.computeAmbientProbeRequested)
if (updateAmbientProbe)
{
using (new ProfilingScope(cmd, ProfilingSampler.Get(HDProfileId.UpdateSkyAmbientProbe)))
{
cmd.SetComputeBufferParam(m_ComputeAmbientProbeCS, m_ComputeAmbientProbeKernel, m_AmbientProbeOutputBufferParam, renderingContext.ambientProbeResult);
cmd.SetComputeTextureParam(m_ComputeAmbientProbeCS, m_ComputeAmbientProbeKernel, m_AmbientProbeInputCubemap, renderingContext.skyboxCubemapRT);
cmd.DispatchCompute(m_ComputeAmbientProbeCS, m_ComputeAmbientProbeKernel, 1, 1, 1);
cmd.RequestAsyncReadback(renderingContext.ambientProbeResult, renderingContext.OnComputeAmbientProbeDone);
renderingContext.computeAmbientProbeRequested = true;

// When the profiler is enabled, we don't want to submit the render context because
// it will break all the profiling sample Begin() calls issued previously, which leads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal class SkyRenderingContext
public bool supportsConvolution { get; private set; } = false;

internal bool ambientProbeIsReady = false;
public bool computeAmbientProbeRequested = false;

public SkyRenderingContext(int resolution, int bsdfCount, bool supportsConvolution, SphericalHarmonicsL2 ambientProbe, string name)
{
Expand Down Expand Up @@ -44,7 +43,6 @@ public SkyRenderingContext(int resolution, int bsdfCount, bool supportsConvoluti
public void Reset()
{
ambientProbeIsReady = false;
computeAmbientProbeRequested = false;
}

public void Cleanup()
Expand Down