public void Initialize(DeviceContextHolder contextHolder) {
            _effect = contextHolder.GetEffect<EffectDeferredGObject>();

            var texturesProvider = contextHolder.Get<TexturesProvider>();
            _txDiffuse = texturesProvider.GetTexture(_filename, contextHolder);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        public void Initialize(DeviceContextHolder contextHolder) {
            _effect = contextHolder.GetEffect<EffectSimpleMaterial>();

            var texturesProvider = contextHolder.Get<TexturesProvider>();
            _txDiffuse = texturesProvider.GetTexture(_filename, contextHolder);
        }