Example #1
0
        public virtual void Release()
        {
            if (ColorMap != null)
            {
                ColorMap.Release(0);
            }

            if (NormalMap != null)
            {
                NormalMap.Release(1);
            }
            //if (TSpec != null) TSpec.Release(2);
            if (EnvironmentMap != null)
            {
                EnvironmentMap.Release(4);
            }

            if (SpecularMap != null)
            {
                SpecularMap.Release(3);
            }
            if (ExtraMap != null)
            {
                ExtraMap.Release(5);
            }

            Active = null;
        }
Example #2
0
        public virtual void ReleaseLightmap()
        {
            if (ColorMap != null)
            {
                ColorMap.Release(0);
            }

            Active = null;
        }
Example #3
0
        public virtual void BindLightmap()
        {
            if (ColorMap != null)
            {
                ColorMap.Bind(0);
            }

            Active = this;
        }
Example #4
0
        public virtual void Bind()
        {
            if (ColorMap != null)
            {
                ColorMap.Bind(0);
            }

            if (NormalMap != null)
            {
                NormalMap.Bind(1);
            }

            //if (TSpec != null) TSpec.Bind(2);

            if (ShadowMap != null)
            {
                // ShadowMap.Bind ( 2 );
            }

            if (EnvironmentMap != null)
            {
                EnvironmentMap.Bind(4);
            }

            if (SpecularMap != null)
            {
                SpecularMap.Bind(3);
            }

            if (ExtraMap != null)
            {
                ExtraMap.Bind(5);
            }

            Active = this;
        }