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:
Richard Davey 2022-11-22 18:13:03 +00:00
parent 899bbfc6df
commit 9357b8e609

View file

@ -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;