Просмотр исходного кода

add missing @function in doclets (#30176)

ycw 1 год назад
Родитель
Сommit
6bbb05ef6a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/nodes/fog/Fog.js

+ 3 - 0
src/nodes/fog/Fog.js

@@ -34,6 +34,7 @@ function getViewZNode( builder ) {
 /**
  * Constructs a new range factor node.
  *
+ * @function
  * @param {Node} near - Defines the near value.
  * @param {Node} far - Defines the far value.
  */
@@ -50,6 +51,7 @@ export const rangeFogFactor = Fn( ( [ near, far ], builder ) => {
  * a clear view near the camera and a faster than exponentially
  * densening fog farther from the camera.
  *
+ * @function
  * @param {Node} density - Defines the fog density.
  */
 export const densityFogFactor = Fn( ( [ density ], builder ) => {
@@ -64,6 +66,7 @@ export const densityFogFactor = Fn( ( [ density ], builder ) => {
  * This class can be used to configure a fog for the scene.
  * Nodes of this type are assigned to `Scene.fogNode`.
  *
+ * @function
  * @param {Node} color - Defines the color of the fog.
  * @param {Node} factor - Defines how the fog is factored in the scene.
  */

粤ICP备19079148号