You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This PR prepares the architecture for three.webgpu.nodes.js which will be done in another PR, some chaning methods have been removed in favor of tree-shaking and should be imported now.
We have StandardNodeLibrary all the Three.js shader inclusions from Materials to ToneMappings, this static part is only assigned to three.webgpu.js which will not have full support for three-shaking.
This is a big change and may impact some existing projects, but I think it will be the last big change until release.
Move NodeMaterials out of Nodes
Create NodeLibrary and StandardNodeLibrary support
Some TSL operators can now be chained and others cannot. IMO, this results in a confusing API.
@WestLangley Can you list the TSL operators you are currently using that are no longer available? This might help me get a second understanding of the issue.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue: #28328
Description
This PR prepares the architecture for
three.webgpu.nodes.js
which will be done in another PR, some chaning methods have been removed in favor of tree-shaking and should be imported now.We have
StandardNodeLibrary
all the Three.js shader inclusions from Materials to ToneMappings, this static part is only assigned tothree.webgpu.js
which will not have full support forthree-shaking
.This is a big change and may impact some existing projects, but I think it will be the last big change until release.
NodeMaterials
out ofNodes
NodeLibrary
andStandardNodeLibrary
supportNodeLibrary
NodeLoader
out ofNodes
TSLBase.js
TSL.js
Nodes
Examples
NodeLoader