-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node: Document more modules. #30012
Node: Document more modules. #30012
Conversation
@@ -937,22 +1111,25 @@ class NodeBuilder { | |||
|
|||
} | |||
|
|||
getStructTypeFromNode( node, shaderStage = this.shaderStage ) { | |||
getStructTypeFromNode( node, types, shaderStage = this.shaderStage ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sunag I have slightly refactored getStructTypeFromNode()
so it is more similar to getBufferAttributeFromNode()
or getUniformFromNode()
.
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
* | ||
* @param {String} type - The input type. | ||
* @param {String} name - The input name. | ||
* @param {Number?} [count=null] - TODO (only relevant for GLSL). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sunag Not sure about the purpose of count
.
It also seems this part of the code throws currently a runtime error in GLSLNodeFunction
. Try webgpu_materials with a WebGL backend.
Uncaught TypeError: undefined has no properties
parse$1 https://threejs.org/build/three.webgpu.js:27563
GLSLNodeFunction https://threejs.org/build/three.webgpu.js:27607
parseFunction https://threejs.org/build/three.webgpu.js:27655
Related issue: #29984
Description
More API documentation.