-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define default color transforms as graphs (#1352)
This changelist updates the definitions of the default color transforms from raw shader code to MaterialX graphs, removing the need for explicit code for each transform to be provided in each supported language. Further in the future, this approach could enable direct communication of color transform graphs from OpenColorIO to MaterialX, allowing both standard ACES transforms and custom transforms to be communicated in a unified way.
- Loading branch information
1 parent
cce5379
commit 1d67704
Showing
47 changed files
with
417 additions
and
643 deletions.
There are no files selected for viewing
This file contains 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 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,90 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38"> | ||
<!-- | ||
Copyright Contributors to the MaterialX Project | ||
SPDX-License-Identifier: Apache-2.0 | ||
Declarations of the default color transforms in MaterialX. | ||
--> | ||
|
||
<nodedef name="ND_g18_rec709_to_lin_rec709_color3" node="g18_rec709_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_g18_rec709_to_lin_rec709_color4" node="g18_rec709_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_g22_rec709_to_lin_rec709_color3" node="g22_rec709_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_g22_rec709_to_lin_rec709_color4" node="g22_rec709_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_rec709_display_to_lin_rec709_color3" node="rec709_display_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_rec709_display_to_lin_rec709_color4" node="rec709_display_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_acescg_to_lin_rec709_color3" node="acescg_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_acescg_to_lin_rec709_color4" node="acescg_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_g22_ap1_to_lin_rec709_color3" node="g22_ap1_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_g22_ap1_to_lin_rec709_color4" node="g22_ap1_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_srgb_texture_to_lin_rec709_color3" node="srgb_texture_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_srgb_texture_to_lin_rec709_color4" node="srgb_texture_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_lin_adobergb_to_lin_rec709_color3" node="lin_adobergb_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_lin_adobergb_to_lin_rec709_color4" node="lin_adobergb_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_adobergb_to_lin_rec709_color3" node="adobergb_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color3" /> | ||
<output name="out" type="color3" /> | ||
</nodedef> | ||
|
||
<nodedef name="ND_adobergb_to_lin_rec709_color4" node="adobergb_to_lin_rec709" nodegroup="colortransform"> | ||
<input name="in" type="color4" /> | ||
<output name="out" type="color4" /> | ||
</nodedef> | ||
|
||
</materialx> |
Oops, something went wrong.