Changing renderer.antialias on the fly?

I know it’s possible to set antialiasing on the renderer when creating it:

renderer = new THREE.WebGLRenderer( { antialias: true } );

But I am unable to change it after it’s been generated:

renderer = new THREE.WebGLRenderer( { antialias: true} );

// If low framerate detected
renderer.antialias = false;

Is it possible to change aliasing settings on the fly after the renderer has been created? I see that this is set when the renderer performs canvas.getContext('webgl', {antialias: true});, so is there a way to change this attribute after the WebGL context has been created?

1 Like

To change this setting you need to create a new WebGL context (or a new renderer). This applies to all WebGL context attributes. You can see all of them listed here: