-
Notifications
You must be signed in to change notification settings - Fork 407
Add Functional NodeDef Support #2401
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
Open
kwokcb
wants to merge
37
commits into
AcademySoftwareFoundation:main
Choose a base branch
from
kwokcb:functional_nodedefs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
f8ceb63
Initial test.
kwokcb a9cc157
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb b96d4cd
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 814e524
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 179a6d6
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 36a154f
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb cf7d0f2
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 8ef6904
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb c52561b
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb cad97bc
Add create options and unit test.
kwokcb 5ac34e5
Add doc for DefinitionsOptions arg on addNodeDefFromGraph().
kwokcb 4dc3ee1
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 7add695
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb df75cae
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb f3b5985
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb cb430ab
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb ece55fc
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb ad477ee
Review updates
kwokcb 8caf533
Fix Windows test warnings.
kwokcb 4057ff9
Add Javascript bindings + unit test.
kwokcb 7e12bf1
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 231bcce
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 6fc3a7b
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb d999875
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb aa3ca63
Merge branch 'main' into functional_nodedefs
kwokcb d24b4f1
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb fc97603
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 5f62af2
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb 8905df3
Merge branch 'AcademySoftwareFoundation:main' into functional_nodedefs
kwokcb f481f6f
Merge branch 'main' into functional_nodedefs
kwokcb 0018a27
Merge remote-tracking branch 'upstream/main' into functional_nodedefs
kwokcb dd352e6
Add inlining, inheritance, and shared implementation logic and more …
kwokcb a3ed34d
Merge remote-tracking branch 'upstream/main' into functional_nodedefs
kwokcb 3e70748
Auto sync.
kwokcb d6346f8
Merge remote-tracking branch 'upstream/main' into functional_nodedefs
kwokcb f9a5603
Fix merge.
kwokcb f235733
Merge remote-tracking branch 'aswf/main' into functional_nodedefs
kwokcb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
79 changes: 79 additions & 0 deletions
79
resources/Materials/TestSuite/stdlib/definition/functional_nodedef.mtlx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| <?xml version="1.0"?> | ||
| <materialx version="1.39"> | ||
| <nodegraph name="NG_test_colorcorrect_reference"> | ||
| <multiply name="AlphaGain" type="float"> | ||
| <input name="in1" type="float" nodename="inputAlpha" /> | ||
| <input name="in2" type="float" interfacename="AlphaGain_in2" /> | ||
| </multiply> | ||
| <add name="AlphaOffset" type="float"> | ||
| <input name="in1" type="float" nodename="AlphaGain" /> | ||
| <input name="in2" type="float" interfacename="AlphaOffset_in2" /> | ||
| </add> | ||
| <multiply name="ColorGain" type="color3"> | ||
| <input name="in1" type="color3" nodename="inputColor" /> | ||
| <input name="in2" type="color3" interfacename="ColorGain_in2" /> | ||
| </multiply> | ||
| <add name="ColorOffset" type="color3"> | ||
| <input name="in1" type="color3" nodename="ColorGain" /> | ||
| <input name="in2" type="color3" interfacename="ColorOffset_in2" /> | ||
| </add> | ||
| <constant name="inputColor" type="color3"> | ||
| <input name="value" type="color3" interfacename="inputColor_value" /> | ||
| </constant> | ||
| <constant name="inputAlpha" type="float"> | ||
| <input name="value" type="float" interfacename="inputAlpha_value" /> | ||
| </constant> | ||
| <output name="out" type="color3" nodename="ColorOffset" /> | ||
| <output name="out1" type="float" nodename="AlphaOffset" /> | ||
| <input name="AlphaGain_in2" type="float" value="0.8" uiname="AlphaGain in2" uifolder="Common" /> | ||
| <input name="AlphaOffset_in2" type="float" value="1" uiname="AlphaOffset in2" uifolder="Common" /> | ||
| <input name="ColorGain_in2" type="color3" value="0.9, 0.9, 0.9" uiname="ColorGain in2" uifolder="Common" /> | ||
| <input name="ColorOffset_in2" type="color3" value="0.379147, 0.0341412, 0.0341412" uiname="ColorOffset in2" uifolder="Common" /> | ||
| <input name="inputColor_value" type="color3" value="0.5, 0.5, 0.5" uiname="inputColor value" uifolder="Common" /> | ||
| <input name="inputAlpha_value" type="float" value="1" uiname="inputAlpha value" uifolder="Common" /> | ||
| </nodegraph> | ||
| <nodedef name="ND_test_colorcorrect" node="test_colorcorrect" version="1.0" isdefaultversion="false" nodegroup="adjustment" uiname="test_colorcorrect Version: 1.0" doc="This is version 1 of the definition for the graph: NG_test_colorcorrect"> | ||
| <nodegraph name="NG_test_colorcorrect"> | ||
| <multiply name="AlphaGain" type="float"> | ||
| <input name="in1" type="float" nodename="inputAlpha" /> | ||
| <input name="in2" type="float" interfacename="AlphaGain_in2" /> | ||
| </multiply> | ||
| <add name="AlphaOffset" type="float"> | ||
| <input name="in1" type="float" nodename="AlphaGain" /> | ||
| <input name="in2" type="float" interfacename="AlphaOffset_in2" /> | ||
| </add> | ||
| <multiply name="ColorGain" type="color3"> | ||
| <input name="in1" type="color3" nodename="inputColor" /> | ||
| <input name="in2" type="color3" interfacename="ColorGain_in2" /> | ||
| </multiply> | ||
| <add name="ColorOffset" type="color3"> | ||
| <input name="in1" type="color3" nodename="ColorGain" /> | ||
| <input name="in2" type="color3" interfacename="ColorOffset_in2" /> | ||
| </add> | ||
| <constant name="inputColor" type="color3"> | ||
| <input name="value" type="color3" interfacename="inputColor_value" /> | ||
| </constant> | ||
| <constant name="inputAlpha" type="float"> | ||
| <input name="value" type="float" interfacename="inputAlpha_value" /> | ||
| </constant> | ||
| <output name="out" type="color3" nodename="ColorOffset" /> | ||
| <output name="out1" type="float" nodename="AlphaOffset" /> | ||
| </nodegraph> | ||
| <input name="AlphaGain_in2" type="float" value="0.8" uiname="AlphaGain in2" uifolder="Common" /> | ||
| <input name="AlphaOffset_in2" type="float" value="1" uiname="AlphaOffset in2" uifolder="Common" /> | ||
| <input name="ColorGain_in2" type="color3" value="0.9, 0.9, 0.9" uiname="ColorGain in2" uifolder="Common" /> | ||
| <input name="ColorOffset_in2" type="color3" value="0.379147, 0.0341412, 0.0341412" uiname="ColorOffset in2" uifolder="Common" /> | ||
| <input name="inputColor_value" type="color3" value="0.5, 0.5, 0.5" uiname="inputColor value" uifolder="Common" /> | ||
| <input name="inputAlpha_value" type="float" value="1" uiname="inputAlpha value" uifolder="Common" /> | ||
| <output name="out" type="color3" /> | ||
| <output name="out1" type="float" /> | ||
| </nodedef> | ||
| <test_colorcorrect name="test_colorcorrect_instance" version="1.0" type="multioutput"> | ||
| <input name="inputColor_value" type="color3" value="0.0, 0.0, 0.0" /> | ||
| <input name="ColorOffset_in2" type="color3" value="1.0, 0.0, 0.0" /> | ||
| <output name="out" type="color3" /> | ||
| </test_colorcorrect> | ||
| <surface_unlit name="surface_unlit" type="surfaceshader"> | ||
| <input name="emission_color" type="color3" output="out" nodename="test_colorcorrect_instance" /> | ||
| </surface_unlit> | ||
| </materialx> |
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 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 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
Oops, something went wrong.
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.
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.
"Backwards" search looks for parent definitions now.