Inheritance: IEffectWrapper, IEffectMatricesWrapper
        public void Initialize(DeviceContextHolder contextHolder) {
            _effect = contextHolder.GetEffect<EffectSimpleMaterial>();

            var texturesProvider = contextHolder.Get<TexturesProvider>();
            _txDiffuse = texturesProvider.GetTexture(_filename, contextHolder);
        }
 public void Initialize(DeviceContextHolder contextHolder) {
     _effect = contextHolder.GetEffect<EffectSimpleMaterial>();
 }
示例#3
0
 public static void Set(this EffectVariable variable, EffectSimpleMaterial.NmUvMultMaterial o) {
     SlimDxExtension.Set(variable, o, EffectSimpleMaterial.NmUvMultMaterial.Stride);
 }