diff --git a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/PostProcessSystem.cs b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/PostProcessSystem.cs index 9f61527ced3..ed03ad9ab08 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/PostProcessSystem.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/PostProcessSystem.cs @@ -1383,6 +1383,7 @@ void PrepareExposureCurveData(out float min, out float max) filterMode = FilterMode.Bilinear, wrapMode = TextureWrapMode.Clamp }; + m_ExposureCurveTexture.hideFlags = HideFlags.HideAndDontSave; } bool minCurveHasPoints = minCurve.length > 0; diff --git a/com.unity.render-pipelines.high-definition/Runtime/Sky/HDRISky/HDRISkyRenderer.cs b/com.unity.render-pipelines.high-definition/Runtime/Sky/HDRISky/HDRISkyRenderer.cs index b95d0cc8f3e..7d26e2bc9d3 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Sky/HDRISky/HDRISkyRenderer.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Sky/HDRISky/HDRISkyRenderer.cs @@ -1,3 +1,7 @@ +#if UNITY_EDITOR +using UnityEditor; +#endif + namespace UnityEngine.Rendering.HighDefinition { class HDRISkyRenderer : SkyRenderer @@ -149,8 +153,14 @@ public override void RenderSky(BuiltinSkyParameters builtinParams, bool renderFo m_SkyHDRIMaterial.SetVector(HDShaderIDs._FlowmapParam, flowmapParam); - scrollFactor += hdriSky.scrollSpeed.value * (Time.time - lastTime) * 0.01f; - lastTime = Time.time; +#if UNITY_EDITOR + // Time.time is not always updated in editor + float time = (float)EditorApplication.timeSinceStartup; +#else + float time = Time.time; +#endif + scrollFactor += hdriSky.scrollSpeed.value * (time - lastTime) * 0.01f; + lastTime = time; } else m_SkyHDRIMaterial.DisableKeyword("SKY_MOTION");