forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a frame transform for UV texture coordinates (AcademySoftware…
- Loading branch information
1 parent
79404a4
commit a5bbba2
Showing
3 changed files
with
72 additions
and
3 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
37 changes: 37 additions & 0 deletions
37
resources/Materials/TestSuite/stdlib/texture/image_transform.mtlx
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,37 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38"> | ||
<nodegraph name="test_place2d_SRT"> | ||
<texcoord name="texcoord1" type="vector2" /> | ||
<place2d name="a_place2d" type="vector2"> | ||
<input name="texcoord" type="vector2" nodename="texcoord1" /> | ||
<input name="offset" type="vector2" value="0.0, 0.0" /> | ||
<input name="rotate" type="float" value="30.0" unittype="angle" unit="degree" /> | ||
<input name="scale" type="vector2" value="2.0, 1.0" /> | ||
<input name="pivot" type="vector2" value="0.5, 0.5" /> | ||
<input name="operationorder" type="integer" value="0" /> | ||
</place2d> | ||
<image name="image_number_1" type="color3"> | ||
<input name="file" type="filename" value="resources/Images/grid.png" /> | ||
<input name="default" type="color3" value="1.0, 0.0, 0.0" /> | ||
<input name="texcoord" type="vector2" nodename="a_place2d" /> | ||
</image> | ||
<output name="out" type="color3" nodename="image_number_1" /> | ||
</nodegraph> | ||
<nodegraph name="test_place2d_TRS"> | ||
<texcoord name="texcoord1" type="vector2" /> | ||
<place2d name="a_place2d" type="vector2"> | ||
<input name="texcoord" type="vector2" nodename="texcoord1" /> | ||
<input name="offset" type="vector2" value="0.2, 0.2" /> | ||
<input name="rotate" type="float" value="30.0" unittype="angle" unit="degree" /> | ||
<input name="scale" type="vector2" value="2.0, 1.0" /> | ||
<input name="pivot" type="vector2" value="0.5, 0.5" /> | ||
<input name="operationorder" type="integer" value="1" /> | ||
</place2d> | ||
<image name="image_number_1" type="color3"> | ||
<input name="file" type="filename" value="resources/Images/grid.png" /> | ||
<input name="default" type="color3" value="1.0, 0.0, 0.0" /> | ||
<input name="texcoord" type="vector2" nodename="a_place2d" /> | ||
</image> | ||
<output name="out" type="color3" nodename="image_number_1" /> | ||
</nodegraph> | ||
</materialx> |