浏览代码

Fixed Inspector Exception when drawing HDRenderLoop

/main
Felipe Lira 8 年前
当前提交
d713ce87
共有 3 个文件被更改,包括 21 次插入7 次删除
  1. 5
      Assets/BasicRenderLoopTutorial/BasicRenderLoop.cs
  2. 10
      Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs
  3. 13
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs

5
Assets/BasicRenderLoopTutorial/BasicRenderLoop.cs


private ShaderPassName shaderPassBasic;
public void OnEnable()
{
Rebuild();
}
public override void Initialize()
{
shaderPassBasic = new ShaderPassName("BasicPass");

10
Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs


TextureCache2D m_CookieTexArray;
TextureCacheCubemap m_CubeCookieTexArray;
void OnValidate()
private void OnEnable()
// TODO: Design workaround for OnValidate being missing on ScriptableObject
Rebuild();
}
private void OnDisable()
{
// TODO: Rework ScriptableRenderLoop Lifecycle
//CleanUp();
}
public override void Rebuild()

13
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


Rebuild();
}
private void OnEnable()
{
Rebuild();
}
CleanUp();
// TODO: Rework ScriptableRenderLoop Lifecycle
//CleanUp();
}
public override void CleanUp()

}
ClearComputeBuffers();
}
void OnValidate()
{
Rebuild();
}
void ClearComputeBuffers()

正在加载...
取消
保存