|
@@ -66,8 +66,8 @@ class BumpMapNode extends TempNode {
|
|
|
/**
|
|
/**
|
|
|
* Constructs a new bump map node.
|
|
* Constructs a new bump map node.
|
|
|
*
|
|
*
|
|
|
- * @param {Node} textureNode - Represents the bump map data.
|
|
|
|
|
- * @param {Node?} [scaleNode=null] - Controls the intensity of the bump effect.
|
|
|
|
|
|
|
+ * @param {Node<float>} textureNode - Represents the bump map data.
|
|
|
|
|
+ * @param {Node<float>?} [scaleNode=null] - Controls the intensity of the bump effect.
|
|
|
*/
|
|
*/
|
|
|
constructor( textureNode, scaleNode = null ) {
|
|
constructor( textureNode, scaleNode = null ) {
|
|
|
|
|
|
|
@@ -76,14 +76,14 @@ class BumpMapNode extends TempNode {
|
|
|
/**
|
|
/**
|
|
|
* Represents the bump map data.
|
|
* Represents the bump map data.
|
|
|
*
|
|
*
|
|
|
- * @type {Node}
|
|
|
|
|
|
|
+ * @type {Node<float>}
|
|
|
*/
|
|
*/
|
|
|
this.textureNode = textureNode;
|
|
this.textureNode = textureNode;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Controls the intensity of the bump effect.
|
|
* Controls the intensity of the bump effect.
|
|
|
*
|
|
*
|
|
|
- * @type {Node?}
|
|
|
|
|
|
|
+ * @type {Node<float>?}
|
|
|
* @default null
|
|
* @default null
|
|
|
*/
|
|
*/
|
|
|
this.scaleNode = scaleNode;
|
|
this.scaleNode = scaleNode;
|
|
@@ -111,8 +111,8 @@ export default BumpMapNode;
|
|
|
* TSL function for creating a bump map node.
|
|
* TSL function for creating a bump map node.
|
|
|
*
|
|
*
|
|
|
* @function
|
|
* @function
|
|
|
- * @param {Node} textureNode - Represents the bump map data.
|
|
|
|
|
- * @param {Node?} [scaleNode=null] - Controls the intensity of the bump effect.
|
|
|
|
|
|
|
+ * @param {Node<float>} textureNode - Represents the bump map data.
|
|
|
|
|
+ * @param {Node<float>?} [scaleNode=null] - Controls the intensity of the bump effect.
|
|
|
* @returns {BumpMapNode}
|
|
* @returns {BumpMapNode}
|
|
|
*/
|
|
*/
|
|
|
export const bumpMap = /*@__PURE__*/ nodeProxy( BumpMapNode );
|
|
export const bumpMap = /*@__PURE__*/ nodeProxy( BumpMapNode );
|