소스 검색

WebGLArrayRenderTarget: Missing options in constructor (#27249)

* missing options constructor

* cleanup format
Renaud Rohlinger 1 년 전
부모
커밋
007519bd1e
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/renderers/WebGL3DRenderTarget.js
  2. 2 2
      src/renderers/WebGLArrayRenderTarget.js

+ 2 - 2
src/renderers/WebGL3DRenderTarget.js

@@ -3,9 +3,9 @@ import { Data3DTexture } from '../textures/Data3DTexture.js';
 
 class WebGL3DRenderTarget extends WebGLRenderTarget {
 
-	constructor( width = 1, height = 1, depth = 1 ) {
+	constructor( width = 1, height = 1, depth = 1, options = {} ) {
 
-		super( width, height );
+		super( width, height, options );
 
 		this.isWebGL3DRenderTarget = true;
 

+ 2 - 2
src/renderers/WebGLArrayRenderTarget.js

@@ -3,9 +3,9 @@ import { DataArrayTexture } from '../textures/DataArrayTexture.js';
 
 class WebGLArrayRenderTarget extends WebGLRenderTarget {
 
-	constructor( width = 1, height = 1, depth = 1 ) {
+	constructor( width = 1, height = 1, depth = 1, options = {} ) {
 
-		super( width, height );
+		super( width, height, options );
 
 		this.isWebGLArrayRenderTarget = true;