Skip to content

Commit

Permalink
change (WebGLMultisampleRenderTarget): make it deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Mar 1, 2022
1 parent 2db9be4 commit 04648c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
17 changes: 5 additions & 12 deletions types/three/src/renderers/WebGLMultisampleRenderTarget.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import { WebGLRenderTarget, WebGLRenderTargetOptions } from './WebGLRenderTarget';
import { WebGLRenderTarget } from './WebGLRenderTarget';

export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
constructor(width: number, height: number, options?: WebGLRenderTargetOptions);

readonly isWebGLMultisampleRenderTarget: true;

/**
* Specifies the number of samples to be used for the renderbuffer storage.However, the maximum supported size for multisampling is platform dependent and defined via gl.MAX_SAMPLES.
* @default 4
*/
samples: number;
}
/**
* @deprecated THREE.WebGLMultisampleRenderTarget has been removed. Use a normal {@link WebGLRenderTarget render target} and set the "samples" property to greater 0 to enable multisampling.
*/
export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {}
7 changes: 7 additions & 0 deletions types/three/src/renderers/WebGLRenderTarget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export class WebGLRenderTarget extends EventDispatcher {
* @default null
*/
depthTexture: DepthTexture;

/**
* Defines the count of MSAA samples. Can only be used with WebGL 2. Default is **0**.
* @default 0
*/
samples: number;

readonly isWebGLRenderTarget: true;

/**
Expand Down

0 comments on commit 04648c8

Please sign in to comment.