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; }
public virtual void ReleaseLightmap() { if (ColorMap != null) { ColorMap.Release(0); } Active = null; }
public virtual void BindLightmap() { if (ColorMap != null) { ColorMap.Bind(0); } Active = this; }
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; }