We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27a593b commit 1805ecdCopy full SHA for 1805ecd
src/renderers/webgl-fallback/WebGLBackend.js
@@ -212,10 +212,10 @@ class WebGLBackend extends Backend {
212
const parameters = this.parameters;
213
214
const contextAttributes = {
215
- antialias: false, // MSAA is applied via a custom renderbuffer
+ antialias: renderer.samples > 0,
216
alpha: true, // always true for performance reasons
217
- depth: false, // depth and stencil are set to false since the engine always renders into a framebuffer target first
218
- stencil: false
+ depth: renderer.depth,
+ stencil: renderer.stencil
219
};
220
221
const glContext = ( parameters.context !== undefined ) ? parameters.context : renderer.domElement.getContext( 'webgl2', contextAttributes );
0 commit comments