示例#1
0
 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);
 }
示例#2
0
 public PBuffer(GraphicsDevice device)
 {
     this.ToneMap = RenderTargetBuilder.Build(nameof(this.ToneMap), device, SurfaceFormat.ColorSRgb);
 }
示例#3
0
 public LBuffer(GraphicsDevice device)
 {
     this.Light = RenderTargetBuilder.Build(nameof(this.Light), device, SurfaceFormat.HalfVector4);
 }