浏览代码

remove decalset if it has no decals

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

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


}
}
public int Count
{
get
{
return this.m_DecalsCount;
}
}
private CullingGroup m_CullingGroup = null;
private BoundingSphere[] m_BoundingSpheres = new BoundingSphere[kDecalBlockSize];
private DecalProjectorComponent[] m_Decals = new DecalProjectorComponent[kDecalBlockSize];

if (m_DecalSets.TryGetValue(key, out decalSet))
{
decalSet.RemoveDecal(decal);
if (decalSet.Count == 0)
{
m_DecalSets.Remove(key);
}
}
}

正在加载...
取消
保存