mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
The RenderTarget
class will now create a Framebuffer that includes a Depth Stencil Buffer attachment by default. Previously, it didn't. By attaching a stencil buffer it allows things like Geometry Masks to work in combination with Post FX and other Pipelines. Fix #5802
This commit is contained in:
parent
899bbfc6df
commit
9357b8e609
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ var RenderTarget = new Class({
|
|||
}
|
||||
|
||||
this.texture = renderer.createTextureFromSource(null, width, height, this.minFilter, true);
|
||||
this.framebuffer = renderer.createFramebuffer(width, height, this.texture, false);
|
||||
this.framebuffer = renderer.createFramebuffer(width, height, this.texture, true);
|
||||
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
|
Loading…
Add table
Reference in a new issue