Browse Source

WebGPUUniform: Don't override value with null

Takahiro 4 years ago
parent
commit
b7c038d2ca
1 changed files with 1 additions and 2 deletions
  1. 1 2
      examples/jsm/renderers/webgpu/WebGPUUniform.js

+ 1 - 2
examples/jsm/renderers/webgpu/WebGPUUniform.js

@@ -2,14 +2,13 @@ import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from '../../../../
 
 
 class WebGPUUniform {
 class WebGPUUniform {
 
 
-	constructor( name, value ) {
+	constructor( name, value = null ) {
 
 
 		this.name = name;
 		this.name = name;
 		this.value = value;
 		this.value = value;
 
 
 		this.byteLength = 0;
 		this.byteLength = 0;
 		this.itemSize = 0;
 		this.itemSize = 0;
-		this.value = null;
 
 
 	}
 	}