示例#1
0
        protected void SortSubRenderStates()
        {
            if (this.subRenderStateSortValid == false)
            {
                if (SubRenderStateList.Count > 1)
                {
                    SubRenderStateList.Sort(new TargetRenderStateComparer());

                    this.subRenderStateSortValid = true;
                }
            }
        }
示例#2
0
        protected void RemoveSubRenderStateInstance(SubRenderState subRenderState)
        {
            for (int i = 0; i < SubRenderStateList.Count; i++)
            {
                SubRenderState it = SubRenderStateList[i];

                if (it == subRenderState)
                {
                    ShaderGenerator.Instance.DestroySubRenderState(it);
                    SubRenderStateList.RemoveAt(i);
                    break;
                }
            }
        }