public GBuffer(GraphicsDevice device) { this.Albedo = RenderTargetBuilder.Build(nameof(this.Albedo), device, SurfaceFormat.ColorSRgb, DepthFormat.Depth24); this.Material = RenderTargetBuilder.Build(nameof(this.Material), device, SurfaceFormat.Color); this.Depth = RenderTargetBuilder.Build(nameof(this.Depth), device, SurfaceFormat.Single); this.Normal = RenderTargetBuilder.Build(nameof(this.Normal), device, SurfaceFormat.HalfVector4); }
public PBuffer(GraphicsDevice device) { this.ToneMap = RenderTargetBuilder.Build(nameof(this.ToneMap), device, SurfaceFormat.ColorSRgb); }
public LBuffer(GraphicsDevice device) { this.Light = RenderTargetBuilder.Build(nameof(this.Light), device, SurfaceFormat.HalfVector4); }