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.
This changelist addresses an edge case in the upgrade of the normalmap node from 1.38 to 1.39, handling normalmap nodes that explicitly state their nodedef. An additional test case has been added to the TestSuite/stdlib/upgrade folder, validating that this edge case is correctly handled.
- Loading branch information
1 parent
1f4f5a1
commit f77d250
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
resources/Materials/TestSuite/stdlib/upgrade/syntax_1_38.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,19 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38"> | ||
<tiledimage name="N_tiledimage" type="vector3"> | ||
<input name="file" type="filename" value="resources/Images/mesh_wire_norm.png" /> | ||
<input name="uvtiling" type="vector2" value="8.0, 8.0" /> | ||
</tiledimage> | ||
<normalmap name="N_normalmap" type="vector3" nodedef="ND_normalmap"> | ||
<input name="in" type="vector3" nodename="N_tiledimage" /> | ||
</normalmap> | ||
<standard_surface name="N_surface" type="surfaceshader"> | ||
<input name="base_color" type="color3" value="1.0, 1.0, 1.0" /> | ||
<input name="specular_roughness" type="float" value="0" /> | ||
<input name="metalness" type="float" value="1" /> | ||
<input name="normal" type="vector3" nodename="N_normalmap" /> | ||
</standard_surface> | ||
<surfacematerial name="N_material" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="N_surface" /> | ||
</surfacematerial> | ||
</materialx> |
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