internal MyCustomMaterialTextures GetTextures() { if (m_textures == null) { m_textures = new MyCustomMaterialTextures(); m_textures.TextureDiffuse = MyTextureManager.GetTexture<MyTexture2D>(m_diffuse, "", null, LoadingMode.Lazy); if (MyRenderConstants.RenderQualityProfile.UseNormals) m_textures.TextureNormal = MyTextureManager.GetTexture<MyTexture2D>(m_normal, "", null, LoadingMode.Lazy); } m_textures.TextureDiffuse.CheckTextureClass(MyTextureClassEnum.DiffuseEmissive); m_textures.TextureNormal.CheckTextureClass(MyTextureClassEnum.NormalSpecular); return m_textures; }
internal MyCustomMaterialTextures GetTextures() { if (m_textures == null) { m_textures = new MyCustomMaterialTextures(); m_textures.TextureDiffuse = MyTextureManager.GetTexture <MyTexture2D>(m_diffuse, "", null, LoadingMode.Lazy); if (MyRenderConstants.RenderQualityProfile.UseNormals) { m_textures.TextureNormal = MyTextureManager.GetTexture <MyTexture2D>(m_normal, "", null, LoadingMode.Lazy); } } m_textures.TextureDiffuse.CheckTextureClass(MyTextureClassEnum.DiffuseEmissive); m_textures.TextureNormal.CheckTextureClass(MyTextureClassEnum.NormalSpecular); return(m_textures); }
internal void UnloadContent() { m_textures = null; }
internal void UnloadContent() { m_textures = null; }