public void Initialize(DeviceContextHolder contextHolder) { _effect = contextHolder.GetEffect<EffectDeferredGObject>(); var texturesProvider = contextHolder.Get<TexturesProvider>(); _txDiffuse = texturesProvider.GetTexture(_filename, contextHolder); }
private 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); }
public void Initialize(DeviceContextHolder contextHolder) { _effect = contextHolder.GetEffect<EffectSimpleMaterial>(); var texturesProvider = contextHolder.Get<TexturesProvider>(); _txDiffuse = texturesProvider.GetTexture(_filename, contextHolder); }