AcTools.Render.Kn5SpecificForward.Materials.Kn5MaterialSimpleBase.GetTexture C# (CSharp) Method

GetTexture() protected method

protected GetTexture ( string mappingName, DeviceContextHolder contextHolder ) : IRenderableTexture
mappingName string
contextHolder DeviceContextHolder
return IRenderableTexture
        protected IRenderableTexture GetTexture(string mappingName, DeviceContextHolder contextHolder) {
            var mapping = Kn5Material?.GetMappingByName(mappingName);
            return mapping == null || Kn5Filename == null ? null :
                    contextHolder.Get<TexturesProvider>().GetTexture(Kn5Filename, mapping.Texture, contextHolder);
        }