Skip to content

Commit

Permalink
Clarifications to UsdPreviewSurface (AcademySoftwareFoundation#2100)
Browse files Browse the repository at this point in the history
- Set the shading model version to 2.5, reflecting the alignment of this graph definition with the 2.5 specification for UsdPreviewSurface (https://openusd.org/release/spec_usdpreviewsurface.html).
- Add UI names for shading model inputs.
- Update doc string letter case.
  • Loading branch information
jstone-lucasfilm authored Oct 31, 2024
1 parent 1b2852e commit 65862ed
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions libraries/bxdf/usd_preview_surface.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
<!-- ======================================================================== -->

<!-- Node: UsdPreviewSurface -->
<nodedef name="ND_UsdPreviewSurface_surfaceshader" node="UsdPreviewSurface" nodegroup="pbr" doc="USD preview surface shader" version="2.6" isdefaultversion="true">
<input name="diffuseColor" type="color3" value="0.18, 0.18, 0.18" uimin="0,0,0" uimax="1,1,1" />
<input name="emissiveColor" type="color3" value="0, 0, 0" uimin="0,0,0" uisoftmax="1,1,1" />
<input name="useSpecularWorkflow" type="integer" value="0" uimin="0" uimax="1" uistep="1" />
<input name="specularColor" type="color3" value="0, 0, 0" uimin="0,0,0" uimax="1,1,1" />
<input name="metallic" type="float" value="0" uimin="0.0" uimax="1.0" />
<input name="roughness" type="float" value="0.5" uimin="0.0" uimax="1.0" />
<input name="clearcoat" type="float" value="0" uimin="0.0" uimax="1.0" />
<input name="clearcoatRoughness" type="float" value="0.01" uimin="0.0" uimax="1.0" />
<input name="opacity" type="float" value="1" uimin="0.0" uimax="1.0" />
<input name="opacityThreshold" type="float" value="0" uimin="0.0" uimax="1.0" />
<input name="ior" type="float" value="1.5" uimin="0.0" uisoftmin="1.0" uisoftmax="3.0" />
<input name="normal" type="vector3" value="0, 0, 1" uimin="-1.0,-1.0,-1.0" uimax="1.0,1.0,1.0" uistep="0.01" />
<input name="displacement" type="float" value="0" />
<input name="occlusion" type="float" value="1" uimin="0.0" uimax="1.0" />
<nodedef name="ND_UsdPreviewSurface_surfaceshader" node="UsdPreviewSurface" nodegroup="pbr" doc="UsdPreviewSurface shader" version="2.5" isdefaultversion="true">
<input name="diffuseColor" type="color3" value="0.18, 0.18, 0.18" uimin="0,0,0" uimax="1,1,1" uiname="Diffuse Color" />
<input name="emissiveColor" type="color3" value="0, 0, 0" uimin="0,0,0" uisoftmax="1,1,1" uiname="Emissive Color" />
<input name="useSpecularWorkflow" type="integer" value="0" uimin="0" uimax="1" uistep="1" uiname="Use Specular Workflow" />
<input name="specularColor" type="color3" value="0, 0, 0" uimin="0,0,0" uimax="1,1,1" uiname="Specular Color" />
<input name="metallic" type="float" value="0" uimin="0.0" uimax="1.0" uiname="Metallic" />
<input name="roughness" type="float" value="0.5" uimin="0.0" uimax="1.0" uiname="Roughness" />
<input name="clearcoat" type="float" value="0" uimin="0.0" uimax="1.0" uiname="Clearcoat" />
<input name="clearcoatRoughness" type="float" value="0.01" uimin="0.0" uimax="1.0" uiname="Clearcoat Roughness" />
<input name="opacity" type="float" value="1" uimin="0.0" uimax="1.0" uiname="Opacity" />
<input name="opacityThreshold" type="float" value="0" uimin="0.0" uimax="1.0" uiname="Opacity Threshold" />
<input name="ior" type="float" value="1.5" uimin="0.0" uisoftmin="1.0" uisoftmax="3.0" uiname="Index of Refraction" />
<input name="normal" type="vector3" value="0, 0, 1" uimin="-1.0,-1.0,-1.0" uimax="1.0,1.0,1.0" uistep="0.01" uiname="Normal" />
<input name="displacement" type="float" value="0" uiname="Displacement" />
<input name="occlusion" type="float" value="1" uimin="0.0" uimax="1.0" uiname="Occlusion" />
<output name="out" type="surfaceshader" />
</nodedef>

Expand Down

0 comments on commit 65862ed

Please sign in to comment.