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; }