浏览代码
Moved resolution of sky rendering into global light loop settings in the HDRP asset (from the individual sky settings).
/feature-ReflectionProbeFit
Moved resolution of sky rendering into global light loop settings in the HDRP asset (from the individual sky settings).
/feature-ReflectionProbeFit
Julien Ignace
7 年前
当前提交
978e07e4
共有 13 个文件被更改,包括 212 次插入 和 193 次删除
-
1ScriptableRenderPipeline/HDRenderPipeline/Editor/HDRenderPipelineInspector.Styles.cs
-
3ScriptableRenderPipeline/HDRenderPipeline/Editor/HDRenderPipelineInspector.cs
-
3ScriptableRenderPipeline/HDRenderPipeline/Editor/Sky/SkySettingsEditor.cs
-
75ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipelineAsset.asset
-
1ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightLoop/GlobalLightLoopSettings.cs
-
24ScriptableRenderPipeline/HDRenderPipeline/Lighting/LightLoop/LightLoop.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/Sky/HDRISky/HDRISky.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/Sky/ProceduralSky/ProceduralSky.cs
-
87ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs
-
134ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyRenderingContext.cs
-
5ScriptableRenderPipeline/HDRenderPipeline/Sky/SkySettings.cs
-
57ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyUpdateContext.cs
-
11ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyUpdateContext.cs.meta
|
|||
using UnityEngine.Rendering; |
|||
using System; |
|||
|
|||
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|||
{ |
|||
internal class SkyUpdateContext |
|||
{ |
|||
|
|||
SkySettings m_SkySettings; |
|||
SkyRenderer m_Renderer; |
|||
|
|||
public int skyParametersHash = -1; |
|||
public float currentUpdateTime = 0.0f; |
|||
public int updatedFramesRequired = 1; // The first frame after the scene load is currently not rendered correctly
|
|||
|
|||
public SkySettings skySettings |
|||
{ |
|||
get { return m_SkySettings; } |
|||
set |
|||
{ |
|||
if (m_SkySettings == value) |
|||
return; |
|||
|
|||
if (m_Renderer != null) |
|||
{ |
|||
m_Renderer.Cleanup(); |
|||
m_Renderer = null; |
|||
} |
|||
|
|||
skyParametersHash = -1; |
|||
m_SkySettings = value; |
|||
updatedFramesRequired = 1; |
|||
currentUpdateTime = 0.0f; |
|||
|
|||
if (value != null) |
|||
{ |
|||
m_Renderer = value.CreateRenderer(); |
|||
m_Renderer.Build(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
public SkyRenderer renderer { get { return m_Renderer; } } |
|||
|
|||
public bool IsValid() |
|||
{ |
|||
return m_Renderer != null && m_Renderer.IsValid(); |
|||
} |
|||
|
|||
public void Cleanup() |
|||
{ |
|||
if (m_Renderer != null) |
|||
m_Renderer.Cleanup(); |
|||
} |
|||
|
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 7f0f3fd17c0272440b8aab72eb5068be |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue