/// <summary> /// Draws things associated with this light, for example glare. /// </summary> public void Draw() { if (GlareOn) { Glare.Draw(); } }
public override bool Draw() { if (GlareOn) { Glare.Draw(); } return(true); }
public override void IssueOcclusionQueries() { base.IssueOcclusionQueries(); if (GlareOn) { Glare.IssueOcclusionQueries(); } IssueSpotQuery(); }
/// <summary> /// Initializes a new instance of the <see cref="YebisPlugin"/> class. /// </summary> /// <param name="name">The name.</param> public YebisPlugin(string name) : base(name) { yebis = new Manager(); ToneMap = yebis.Config.ToneMap; Glare = yebis.Config.Glare; ColorCorrection = yebis.Config.ColorCorrection; Lens = yebis.Config.Lens; DepthOfField = yebis.Config.DepthOfField; HeatShimmer = yebis.Config.HeatShimmer; LightShaft = yebis.Config.LightShaft; PreferredFormat = PixelFormat.R16G16B16A16_Float; // Make sure that the Depth Stencil will be created with ShaderResource Tags.Set(RenderTargetKeys.RequireDepthStencilShaderResource, true); }
/// <summary>Initialise the asset.</summary> /// <param name="parent"></param> /// <param name="loader"></param> /// <param name="texture"></param> public TextureAsset(FolderAsset parent, AssetLoader loader, Glare.Graphics.Texture texture) : base(parent, loader) { }
/// <summary>Initialise the asset.</summary> /// <param name="loader"></param> /// <param name="texture"></param> public TextureAsset(AssetLoader loader, Glare.Graphics.Texture texture) : base(loader) { Content = texture; }
public override GameInstance MatchGame(string path, Glare.Assets.FileManager manager) { return base.MatchGame(path, manager); }