浏览代码

Fixed issue that was causing Lightweight pipeline to not be disposed/recreated when changing asset settings.

/RenderPassXR_Sandbox
Felipe Lira 8 年前
当前提交
7b9c5509
共有 2 个文件被更改,包括 7 次插入0 次删除
  1. 2
      Assets/ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs
  2. 5
      Assets/ScriptableRenderPipeline/LightweightPipeline/LightweightPipelineAsset.cs

2
Assets/ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


public override void Dispose()
{
base.Dispose();
Shader.globalRenderPipeline = "";
if (m_LightIndexListBuffer != null)
{

5
Assets/ScriptableRenderPipeline/LightweightPipeline/LightweightPipelineAsset.cs


return new LightweightPipeline(this);
}
void OnValidate()
{
DestroyCreatedInstances();
}
#region PipelineAssetSettings
[SerializeField] private int m_MaxPixelLights = 1;

正在加载...
取消
保存