Exemplo n.º 1
0
 public ParticleSimulationSystem(GraphicsDevice device, FrameService frameService, PostProcessTriangle postProcessTriangle, ParticleSimulationEffect simulationEffect)
 {
     this.Device              = device;
     this.FrameService        = frameService;
     this.PostProcessTriangle = postProcessTriangle;
     this.SimulationEffect    = simulationEffect;
 }
Exemplo n.º 2
0
        public ParticipatingMediaSystem(GraphicsDevice device, ContentManager content, ShadowMapEffect shadowMapEffect, ParticipatingMediaEffect mediaEffect, ParticipatingMediaPostProcessEffect postProcessEffect, PostProcessTriangle postProcessTriangle, FrameService frameService)
        {
            this.Device = device;
            this.Albedo = new Texture2D(device, 1, 1);
            this.Albedo.SetData(new Color[] { Color.White });
            this.MediaEffect         = mediaEffect;
            this.ShadowMapEffect     = shadowMapEffect;
            this.PostProcessEffect   = postProcessEffect;
            this.PostProcessTriangle = postProcessTriangle;
            this.FrameService        = frameService;

            this.Noise         = content.Load <Texture2D>("Textures/BlueNoise");
            this.DitherPattern = content.Load <Texture2D>("Textures/DitherPattern");

            this.FrontRasterizerState = new RasterizerState
            {
                CullMode        = CullMode.CullCounterClockwiseFace,
                DepthClipEnable = false
            };

            this.BackRasterizerState = new RasterizerState
            {
                CullMode        = CullMode.CullClockwiseFace,
                DepthClipEnable = false
            };
        }
Exemplo n.º 3
0
 public SunlightSystem(GraphicsDevice device, PostProcessTriangle postProcessTriangle, SunlightEffect effect, FrameService frameService)
 {
     this.Device              = device;
     this.FrameService        = frameService;
     this.PostProcessTriangle = postProcessTriangle;
     this.Effect              = effect;
 }
Exemplo n.º 4
0
        public ImageBasedLightSystem(GraphicsDevice device, BrdfLutGenerator brdfLutGenerator, PostProcessTriangle postProcessTriangle, ImageBasedLightEffect effect, FrameService frameService)
        {
            this.Device = device;
            this.PostProcessTriangle = postProcessTriangle;
            this.FrameService        = frameService;
            this.Effect = effect;

            this.BrdfLutTexture = brdfLutGenerator.Generate();
        }
Exemplo n.º 5
0
 public ImageInspectorWindow(ImGuiRenderer guiRenderer, ILogger logger, GraphicsDevice device, OpaqueEffect effect, PostProcessTriangle triangle, WindowService windowService)
 {
     this.GuiRenderer   = guiRenderer;
     this.Logger        = logger;
     this.Device        = device;
     this.Effect        = effect;
     this.Triangle      = triangle;
     this.WindowService = windowService;
     this.Textures      = new List <Texture2D>();
 }
Exemplo n.º 6
0
 public BrdfLutGenerator(GraphicsDevice device, PostProcessTriangle postProcessTriangle, BrdfLutGeneratorEffect effect)
 {
     this.Device = device;
     this.PostProcessTriangleullScreenTriangle = postProcessTriangle;
     this.Effect = effect;
 }