forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Gooch Shading node to NPR library (AcademySoftwareFoundation#1674)
Initial implementation of a gooch_shade node to the NPR data library that represents Gooch Shading used for technical illustration.
- Loading branch information
1 parent
2edc358
commit 7bec19f
Showing
3 changed files
with
118 additions
and
0 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
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,30 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38"> | ||
|
||
<gooch_shade name="default_gooch" type="color3"> | ||
<input name="warm_color" type="color3" value="0.8, 0.8, 0.7" /> | ||
<input name="cool_color" type="color3" value="0.3, 0.3, 0.8" /> | ||
<input name="specular_intensity" type="float" value="1" /> | ||
<input name="shininess" type="float" value="64" /> | ||
</gooch_shade> | ||
<surface_unlit name="unlit_surface" type="surfaceshader"> | ||
<input name="emission_color" type="color3" nodename="default_gooch" /> | ||
</surface_unlit> | ||
<surfacematerial name="default_gooch_material" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="unlit_surface" /> | ||
</surfacematerial> | ||
|
||
<gooch_shade name="red_blue_gooch" type="color3"> | ||
<input name="warm_color" type="color3" value="0.9, 0.1, 0.1" /> | ||
<input name="cool_color" type="color3" value="0.1, 0.1, 0.9" /> | ||
<input name="specular_intensity" type="float" value="1" /> | ||
<input name="shininess" type="float" value="64" /> | ||
</gooch_shade> | ||
<surface_unlit name="redblue_gooch_surface" type="surfaceshader"> | ||
<input name="emission_color" type="color3" nodename="red_blue_gooch" /> | ||
</surface_unlit> | ||
<surfacematerial name="redblue_gooch_material" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="redblue_gooch_surface" /> | ||
</surfacematerial> | ||
|
||
</materialx> |