-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from jstone-lucasfilm/dev_1.36
Updates for v1.36 release
- Loading branch information
Showing
6 changed files
with
123 additions
and
126 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 |
---|---|---|
@@ -1,99 +1,105 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<materialx version="1.36"> | ||
<!-- "nodegraph1" example from Spec doc --> | ||
<image name="img1" type="color3"> | ||
<parameter name="file" type="filename" value="layer1.tif"/> | ||
</image> | ||
<image name="img2" type="color3"> | ||
<parameter name="file" type="filename" value="layer2.tif"/> | ||
</image> | ||
<image name="img3" type="float"> | ||
<parameter name="file" type="filename" value="mask1.tif"/> | ||
</image> | ||
<mix name="n0" type="color3"> | ||
<input name="fg" type="color3" nodename="img1"/> | ||
<input name="bg" type="color3" nodename="img2"/> | ||
<input name="mix" type="float" nodename="img3"/> | ||
</mix> | ||
<multiply name="n1" type="color3"> | ||
<input name="in1" type="color3" nodename="n0"/> | ||
<input name="in2" type="float" value="0.22"/> | ||
</multiply> | ||
<output name="diffuse" type="color3" nodename="n1"/> | ||
<nodegraph name="NG_example1"> | ||
<image name="img1" type="color3"> | ||
<parameter name="file" type="filename" value="layer1.tif"/> | ||
</image> | ||
<image name="img2" type="color3"> | ||
<parameter name="file" type="filename" value="layer2.tif"/> | ||
</image> | ||
<image name="img3" type="float"> | ||
<parameter name="file" type="filename" value="mask1.tif"/> | ||
</image> | ||
<mix name="n0" type="color3"> | ||
<input name="fg" type="color3" nodename="img1"/> | ||
<input name="bg" type="color3" nodename="img2"/> | ||
<input name="mix" type="float" nodename="img3"/> | ||
</mix> | ||
<multiply name="n1" type="color3"> | ||
<input name="in1" type="color3" nodename="n0"/> | ||
<input name="in2" type="float" value="0.22"/> | ||
</multiply> | ||
<output name="diffuse" type="color3" nodename="n1"/> | ||
</nodegraph> | ||
|
||
<!-- "nodegraph2" example from Spec doc --> | ||
<image name="img1" type="color3"> | ||
<parameter name="file" type="filename" value="multilayer.tif"/> | ||
<parameter name="layer" type="string" value="diffuse1"/> | ||
</image> | ||
<image name="img2" type="color3"> | ||
<parameter name="file" type="filename" value="multilayer.tif"/> | ||
<parameter name="layer" type="string" value="diffuse2"/> | ||
</image> | ||
<image name="img3" type="float"> | ||
<parameter name="file" type="filename" value="multilayer.tif"/> | ||
<parameter name="layer" type="string" value="areamask"/> | ||
</image> | ||
<mix name="n3" type="color3"> | ||
<input name="fg" type="color3" nodename="img1"/> | ||
<input name="bg" type="color3" nodename="img2"/> | ||
<input name="mix" type="float" nodename="img3"/> | ||
</mix> | ||
<multiply name="n4" type="color3"> | ||
<input name="in1" type="color3" nodename="n3"/> | ||
<input name="in2" type="float" value="0.22"/> | ||
</multiply> | ||
<output name="diffuse" type="color3" nodename="n4"/> | ||
<nodegraph name="NG_example2"> | ||
<image name="img1" type="color3"> | ||
<parameter name="file" type="filename" value="multilayer.tif"/> | ||
<parameter name="layer" type="string" value="diffuse1"/> | ||
</image> | ||
<image name="img2" type="color3"> | ||
<parameter name="file" type="filename" value="multilayer.tif"/> | ||
<parameter name="layer" type="string" value="diffuse2"/> | ||
</image> | ||
<image name="img3" type="float"> | ||
<parameter name="file" type="filename" value="multilayer.tif"/> | ||
<parameter name="layer" type="string" value="areamask"/> | ||
</image> | ||
<mix name="n3" type="color3"> | ||
<input name="fg" type="color3" nodename="img1"/> | ||
<input name="bg" type="color3" nodename="img2"/> | ||
<input name="mix" type="float" nodename="img3"/> | ||
</mix> | ||
<multiply name="n4" type="color3"> | ||
<input name="in1" type="color3" nodename="n3"/> | ||
<input name="in2" type="float" value="0.22"/> | ||
</multiply> | ||
<output name="diffuse" type="color3" nodename="n4"/> | ||
</nodegraph> | ||
|
||
<!-- "nodegraph3" example from Spec doc --> | ||
<!-- Note: <geominfo> elements would be needed somewhere to define <diff_albedo> etc. | ||
token values for each geometry --> | ||
<image name="img1" type="color3"> | ||
<parameter name="file" type="filename" value="<diff_albedo>"/> | ||
</image> | ||
<image name="img2" type="color3"> | ||
<parameter name="file" type="filename" value="<dirt_albedo>"/> | ||
</image> | ||
<image name="img3" type="float"> | ||
<parameter name="file" type="filename" value="<areamask>"/> | ||
<nodegraph name="NG_example3"> | ||
<image name="img1" type="color3"> | ||
<parameter name="file" type="filename" value="<diff_albedo>"/> | ||
</image> | ||
<image name="img2" type="color3"> | ||
<parameter name="file" type="filename" value="<dirt_albedo>"/> | ||
</image> | ||
<image name="img3" type="float"> | ||
<parameter name="file" type="filename" value="<areamask>"/> | ||
</image> | ||
<image name="img4" type="float"> | ||
<parameter name="file" type="filename" value="<noisemask>"/> | ||
</image> | ||
<image name="img4" type="float"> | ||
<parameter name="file" type="filename" value="<noisemask>"/> | ||
</image> | ||
<constant name="n5" type="color3"> | ||
<parameter name="value" type="color3" value="0.8,1.0,1.3"/> | ||
</constant> | ||
<multiply name="n6" type="color3"> | ||
<input name="in1" type="color3" nodename="n5"/> | ||
<input name="in2" type="color3" nodename="img1"/> | ||
</multiply> | ||
<contrast name="n7" type="color3"> | ||
<input name="in" type="color3" nodename="img2"/> | ||
<parameter name="amount" type="float" value="0.2"/> | ||
<parameter name="pivot" type="float" value="0.5"/> | ||
</contrast> | ||
<mix name="n8" type="color3"> | ||
<input name="fg" type="color3" nodename="n7"/> | ||
<input name="bg" type="color3" nodename="n6"/> | ||
<input name="mix" type="float" nodename="img3"/> | ||
</mix> | ||
<texcoord name="t1" type="vector2"/> | ||
<multiply name="m1" type="vector2"> | ||
<input name="in" type="vector2" nodename="t1"/> | ||
<parameter name="amount" type="float" value="0.003"/> | ||
</multiply> | ||
<noise2d name="n9" type="color3"> | ||
<input name="texcoord" type="vector2" nodename="m1"/> | ||
<parameter name="amplitude" type="vector3" value="0.05,0.04,0.06"/> | ||
</noise2d> | ||
<inside name="n10" type="color3"> | ||
<input name="mask" type="float" nodename="img4"/> | ||
<input name="in" type="color3" nodename="n9"/> | ||
</inside> | ||
<add name="n11" type="color3"> | ||
<input name="in1" type="color3" nodename="n10"/> | ||
<input name="in2" type="color3" nodename="n8"/> | ||
</add> | ||
<output name="albedo" type="color3" nodename="n11"/> | ||
<output name="areamask" type="float" nodename="img3"/> | ||
<constant name="n5" type="color3"> | ||
<parameter name="value" type="color3" value="0.8,1.0,1.3"/> | ||
</constant> | ||
<multiply name="n6" type="color3"> | ||
<input name="in1" type="color3" nodename="n5"/> | ||
<input name="in2" type="color3" nodename="img1"/> | ||
</multiply> | ||
<contrast name="n7" type="color3"> | ||
<input name="in" type="color3" nodename="img2"/> | ||
<parameter name="amount" type="float" value="0.2"/> | ||
<parameter name="pivot" type="float" value="0.5"/> | ||
</contrast> | ||
<mix name="n8" type="color3"> | ||
<input name="fg" type="color3" nodename="n7"/> | ||
<input name="bg" type="color3" nodename="n6"/> | ||
<input name="mix" type="float" nodename="img3"/> | ||
</mix> | ||
<texcoord name="t1" type="vector2"/> | ||
<multiply name="m1" type="vector2"> | ||
<input name="in" type="vector2" nodename="t1"/> | ||
<parameter name="amount" type="float" value="0.003"/> | ||
</multiply> | ||
<noise2d name="n9" type="color3"> | ||
<input name="texcoord" type="vector2" nodename="m1"/> | ||
<parameter name="amplitude" type="vector3" value="0.05,0.04,0.06"/> | ||
</noise2d> | ||
<inside name="n10" type="color3"> | ||
<input name="mask" type="float" nodename="img4"/> | ||
<input name="in" type="color3" nodename="n9"/> | ||
</inside> | ||
<add name="n11" type="color3"> | ||
<input name="in1" type="color3" nodename="n10"/> | ||
<input name="in2" type="color3" nodename="n8"/> | ||
</add> | ||
<output name="albedo" type="color3" nodename="n11"/> | ||
<output name="areamask" type="float" nodename="img3"/> | ||
</nodegraph> | ||
</materialx> |
Binary file not shown.
Binary file not shown.
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