Procházet zdrojové kódy

Docs: Fix function types. (#30559)

Michael Herzog před 1 rokem
rodič
revize
d8bf25aa51

+ 1 - 1
src/materials/nodes/NodeMaterial.js

@@ -292,7 +292,7 @@ class NodeMaterial extends Material {
 		 * 	return shadow.mix( color( 0xff0000 ), 1 ); // modify shadow color
 		 * 	return shadow.mix( color( 0xff0000 ), 1 ); // modify shadow color
 		 * } );
 		 * } );
 		 *
 		 *
-		 * @type {?(Function<vec4>|FunctionNode<vec4>)}
+		 * @type {?(Function|FunctionNode<vec4>)}
 		 * @default null
 		 * @default null
 		 */
 		 */
 		this.receivedShadowNode = null;
 		this.receivedShadowNode = null;

+ 1 - 1
src/materials/nodes/VolumeNodeMaterial.js

@@ -44,7 +44,7 @@ class VolumeNodeMaterial extends NodeMaterial {
 		/**
 		/**
 		 * Node used for scattering calculations.
 		 * Node used for scattering calculations.
 		 *
 		 *
-		 * @type {Function<vec4>|FunctionNode<vec4>}
+		 * @type {Function|FunctionNode<vec4>}
 		 * @default null
 		 * @default null
 		 */
 		 */
 		this.scatteringNode = null;
 		this.scatteringNode = null;

粤ICP备19079148号