浏览代码

Remove old version of UpdateCachedData

/main
Paul Melamed 7 年前
当前提交
b41682f1
共有 2 个文件被更改,包括 1 次插入7 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalProjectorComponent.cs
  2. 6
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalSystem.cs

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalProjectorComponent.cs


{
DrawGizmo(true);
// if this object is selected there is a chance the transform was changed so update culling info
DecalSystem.instance.UpdateCachedData(this);
DecalSystem.instance.UpdateCachedData(transform, m_DrawDistance, m_FadeScale, m_Handle);
}
public void OnDrawGizmos()

6
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalSystem.cs


}
}
// for compatibility with old code
public void UpdateCachedData(DecalProjectorComponent decal)
{
UpdateCachedData(decal.transform, decal.m_DrawDistance, decal.m_FadeScale, decal.Handle);
}
public void BeginCull()
{
foreach (var pair in m_DecalSets)

正在加载...
取消
保存