pair.Value.EndCull();
}
// need a better way than passing light loop here
public void RenderIntoDBuffer(CommandBuffer cmd)
{
if (m_DecalMesh == null)
if (m_DecalAtlas != null)
m_DecalAtlas.Release();
CoreUtils.Destroy(m_DecalMesh);
m_DecalAtlas = null; // set to null so that it gets recreated correctly
m_DecalMesh = null;