public SimpleOverlay(string textureName, string shaderName = "Default", EffectPriority priority = EffectPriority.VeryLow, RenderLayers layer = RenderLayers.All) : base(priority, layer) { this._texture = TextureManager.AsyncLoad(textureName == null ? "" : textureName); this._shader = new ScreenShaderData(Main.ScreenShaderRef, shaderName); }
public SimpleOverlay(string textureName, ScreenShaderData shader, EffectPriority priority = EffectPriority.VeryLow, RenderLayers layer = RenderLayers.All) : base(priority, layer) { this._texture = TextureManager.AsyncLoad(textureName == null ? "" : textureName); this._shader = shader; }
public MiscShaderData UseImage(string path) { this._uImage = TextureManager.AsyncLoad(path); return(this); }
public ScreenShaderData UseImage(string path, int index = 0, SamplerState samplerState = null) { this._uImages[index] = TextureManager.AsyncLoad(path); this._samplerStates[index] = samplerState; return(this); }