-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code generation hints support (#1954)
Initial implementation of code generation hints, as described in the 1.39 specification
- Loading branch information
Showing
7 changed files
with
90 additions
and
8 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
15 changes: 15 additions & 0 deletions
15
resources/Materials/TestSuite/pbrlib/surfaceshader/transparency_hints.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,15 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.39" colorspace="lin_rec709"> | ||
<surfacematerial name="geom_hint" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="geometric_opacity_hint" /> | ||
</surfacematerial> | ||
<open_pbr_surface name="geometric_opacity_hint" type="surfaceshader"> | ||
<input name="geometry_opacity" type="float" value="0.5" /> | ||
</open_pbr_surface> | ||
<surfacematerial name="transp_hint" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="transparency_weight_hint" /> | ||
</surfacematerial> | ||
<open_pbr_surface name="transparency_weight_hint" type="surfaceshader"> | ||
<input name="transmission_weight" type="float" value="0.8" /> | ||
</open_pbr_surface> | ||
</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
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
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