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.
Improvements to support locale and units (AcademySoftwareFoundation#892)
- Add utilities UnitConverterRegistry::convertToUnit and MaterialX::joinStrings. - Use C Locale for string stream operations (autodesk-forks#1183). - Add tests for unit and locale content.
- Loading branch information
1 parent
e2e49bc
commit 434f3fc
Showing
10 changed files
with
195 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38"> | ||
<standard_surface name="SR_numberformats" type="surfaceshader"> | ||
<input name="base_color" type="color3" value="0.18,0.18, 0.18"/> | ||
<input name="specular_color" type="color3" value="0.05, 0.05,0.05" /> | ||
<input name="normal" type="vector3" value="1,0.5,1" /> | ||
<input name="specular_roughness" type="float" value="0.25" /> | ||
<input name="coat" type="float" value="1" /> | ||
</standard_surface> | ||
<surfacematerial name="Number_formats" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="SR_numberformats" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38" colorspace="lin_rec709"> | ||
<standard_surface name="SR_Localetest" type="surfaceshader"> | ||
<input name="base" type="float" value="1" /> | ||
<input name="base_color" type="color3" value="0.18,0.18, 0.18" uiname="びまん性" /> | ||
<input name="specular" type="float" value="0" uiname="spéculaire"/> | ||
<input name="specular_roughness" type="float" value="0.25" uiname="表面粗さ"/> | ||
<input name="metalness" type="float" value="1" /> | ||
<input name="coat" type="float" value="1" /> | ||
<input name="coat_color" type="color3" value="0.05, 0.05,0.05" /> | ||
<input name="coat_roughness" type="float" value="0.20000000298023224" /> | ||
</standard_surface> | ||
<surfacematerial name="Locale" type="material"> | ||
<input name="surfaceshader" type="surfaceshader" nodename="SR_Localetest" /> | ||
</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
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
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