Exemplo n.º 1
0
 /// <summary>
 /// Draws things associated with this light, for example glare.
 /// </summary>
 public void Draw()
 {
     if (GlareOn)
     {
         Glare.Draw();
     }
 }
Exemplo n.º 2
0
        public override bool Draw()
        {
            if (GlareOn)
            {
                Glare.Draw();
            }

            return(true);
        }
Exemplo n.º 3
0
        public override void IssueOcclusionQueries()
        {
            base.IssueOcclusionQueries();

            if (GlareOn)
            {
                Glare.IssueOcclusionQueries();
            }

            IssueSpotQuery();
        }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
        /// <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);
        }
Exemplo n.º 6
0
 /// <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)
 {
 }
Exemplo n.º 7
0
 /// <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;
 }
Exemplo n.º 8
0
 public override GameInstance MatchGame(string path, Glare.Assets.FileManager manager)
 {
     return base.MatchGame(path, manager);
 }