File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ class InstanceNode extends Node {
33
33
*
34
34
* @param {number } count - The number of instances.
35
35
* @param {InstancedBufferAttribute } instanceMatrix - Instanced buffer attribute representing the instance transformations.
36
- * @param {InstancedBufferAttribute } instanceColor - Instanced buffer attribute representing the instance colors.
36
+ * @param {? InstancedBufferAttribute } instanceColor - Instanced buffer attribute representing the instance colors.
37
37
*/
38
- constructor ( count , instanceMatrix , instanceColor ) {
38
+ constructor ( count , instanceMatrix , instanceColor = null ) {
39
39
40
40
super ( 'void' ) ;
41
41
@@ -71,6 +71,7 @@ class InstanceNode extends Node {
71
71
* The node that represents the instance color data.
72
72
*
73
73
* @type {?Node }
74
+ * @default null
74
75
*/
75
76
this . instanceColorNode = null ;
76
77
@@ -220,7 +221,7 @@ export default InstanceNode;
220
221
* @function
221
222
* @param {number } count - The number of instances.
222
223
* @param {InstancedBufferAttribute } instanceMatrix - Instanced buffer attribute representing the instance transformations.
223
- * @param {InstancedBufferAttribute } instanceColor - Instanced buffer attribute representing the instance colors.
224
+ * @param {? InstancedBufferAttribute } instanceColor - Instanced buffer attribute representing the instance colors.
224
225
* @returns {InstanceNode }
225
226
*/
226
- export const instance = /*@__PURE__ */ nodeProxy ( InstanceNode ) . setParameterLength ( 3 ) ;
227
+ export const instance = /*@__PURE__ */ nodeProxy ( InstanceNode ) . setParameterLength ( 2 , 3 ) ;
You can’t perform that action at this time.
0 commit comments