public void SetTextureFilter(string samplerName, TextureFilter filter)
        {
            if (_filters.ContainsKey(samplerName))
            {
                _filters.Remove(samplerName);
            }

            _filters.Add(samplerName, new NamedTextureFilter()
            {
                Name = samplerName, TextureFilter = filter
            });
        }
示例#2
0
 public void SetTextureFilter(string materialPass, string samplerName, TextureFilter filter)
 {
     GetOrCreatePass(materialPass).SetTextureFilter(samplerName, filter);
 }