Skip to content

Commit

Permalink
Adding values to test file
Browse files Browse the repository at this point in the history
Adding values to all inputs to avoid warnings. This files generates no warning messages  when loaded in MaterialX viewer

Also fixing a small typo in the defs file
  • Loading branch information
zicher3d committed Feb 29, 2024
1 parent 0792760 commit ea3c401
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion contrib/adsk/libraries/adsklib/adsklib_legacy_defs.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
<input name="transparency_image_enable" type="boolean" value="false" uivisible="true" uiname="Transparency Image" />
<input name="transparency_image" type="float" value="0" uivisible="true" uiname="Custom Transparency Image" />
<input name="transparency_image_fade" type="float" value="1" uivisible="true" uiname="Transparency Image Fade" uimin="0" uimax="1" />
<input name="refraction" type="float" value="4" uivisible="true" uiname="Refraction IOR" enum="Air,Water,Alcohol,Quarts,Glass,Diamond,Custom" enumvalues="0,1,2,3,4,5,6" uimin="0" uimax="6" />
<input name="refraction" type="float" value="4" uivisible="true" uiname="Refraction IOR" enum="Air,Water,Alcohol,Quartz,Glass,Diamond,Custom" enumvalues="0,1,2,3,4,5,6" uimin="0" uimax="6" />
<input name="custom_refraction" type="float" value="1.5" uivisible="true" uiname="Custom Refraction IOR" uimin="1" uimax="10" />
<input name="translucency" type="float" value="0" uivisible="true" uiname="Translucency" />
<input name="bump_enable" type="boolean" value="false" uivisible="true" uiname="Bump" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-->

<legacy_mirror name="SR_legacy_mirror" type="surfaceshader" >
<input name="color" type="color3" />
<input name="color" type="color3" value="0.98,0.98,0.98" />
<input name="tint_enable" type="boolean" value="true" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
</legacy_mirror>
Expand All @@ -16,12 +16,12 @@
<legacy_plastic name="SR_legacy_plastic" type="surfaceshader" >
<input name="type" type="float" value="1" />
<input name="color" type="color3" value="0.43,0.07,0.07" />
<input name="finish" type="float"/>
<input name="tint_enable" type="boolean"/>
<input name="tint_color" type="color3"/>
<input name="finish_bump_enable" type="boolean" />
<input name="finish" type="float" value="0" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="finish_bump_enable" type="boolean" value="false" />
<input name="finish_bump" type="vector3" nodename="height_map1_plastic" />
<input name="relief_pattern_enable" type="boolean" />
<input name="relief_pattern_enable" type="boolean" value="false" />
<input name="relief_pattern" type="vector3" nodename="height_map2_plastic"/>
</legacy_plastic>
<surfacematerial name="M_legacy_plastic" type="material">
Expand All @@ -42,12 +42,12 @@
<input name="color" type="color3" nodename="image_hardwood" />
<input name="stain_enable" type="boolean" value="true" />
<input name="stain_color" type="color3" value="0.2,0.2,0.9" />
<input name="finish" type="float" />
<input name="used_for" type="float" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="relief_pattern_enable" type="boolean" />
<input name="relief_pattern_type" type="float" />
<input name="finish" type="float" value="0" />
<input name="used_for" type="float" value="0" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="relief_pattern_enable" type="boolean" value="false" />
<input name="relief_pattern_type" type="float" value="0" />
<input name="relief_pattern_custom" type="vector3" nodename="height_map1_hardwood" />
</legacy_hardwood>
<surfacematerial name="M_legacy_hardwood" type="material">
Expand All @@ -65,33 +65,33 @@
<legacy_glazing name="SR_legacy_glazing" type="surfaceshader" >
<input name="color" type="float" value="6" />
<input name="custom_color" type="color3" value="0.99,0,0" />
<input name="test_sRGB" type="boolean"/>
<input name="reflectance" type="float"/>
<input name="reflection_color" type="float"/>
<input name="sheets_of_glass" type="integer"/>
<input name="tint_enable" type="boolean"/>
<input name="tint_color" type="color3"/>
<input name="test_sRGB" type="boolean" value="false" />
<input name="reflectance" type="float" value="0.12" />
<input name="reflection_color" type="float" value="1,1,1" />
<input name="sheets_of_glass" type="integer" value="1" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.5,0.5,0.95" />
</legacy_glazing>
<surfacematerial name="M_legacy_glazing" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_legacy_glazing" />
</surfacematerial>

<legacy_metal name="SR_legacy_metal" type="surfaceshader" >
<input name="type" type="float" value="3" />
<input name="custom_color" type="color3"/>
<input name="custom_color" type="color3" value="0.5,0.5,0.95" />
<input name="finish" type="float" value="1" />
<input name="custom_finish" type="float"/>
<input name="custom_finish" type="float" value="0.5" />
<input name="patina" type="float" value="0.5" />
<input name="relief_enable" type="boolean"/>
<input name="relief" type="float"/>
<input name="custom_relief" type="vector3"/>
<input name="relief_enable" type="boolean" value="false" />
<input name="relief" type="float" value="0" />
<!-- <input name="custom_relief" type="vector3"/> -->
<input name="cutout_enable" type="boolean" value="true" />
<input name="cutout" type="float" value="4" />
<input name="cutout_size" type="float" value="0.06" />
<input name="cutout_spacing" type="float" value="0.1" />
<input name="custom_cutout" type="color3"/>
<input name="tint_enable" type="boolean"/>
<input name="tint_color" type="color3"/>
<!-- <input name="custom_cutout" type="color3"/> -->
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="normal_knurl" type="vector3" nodename="normal_map_knurl" />
<input name="normal_diamondplate" type="vector3" nodename="normal_map_diamondplate" />
<input name="normal_checkerplate" type="vector3" nodename="normal_map_checkerplate" />
Expand All @@ -113,31 +113,31 @@
</adsk:normal_map>

<legacy_metallicpaint name="SR_legacy_metallicpaint" type="surfaceshader" >
<input name="color" type="color3" />
<input name="highlight_spread" type="float" />
<input name="coat_type" type="float" />
<input name="coat_finish" type="float" />
<input name="custom_coat_ior" type="float" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="color" type="color3" value="0.95,0.1,0.5" />
<input name="highlight_spread" type="float" value="0.55" />
<input name="coat_type" type="float" value="0" />
<input name="coat_finish" type="float" value="1" />
<input name="custom_coat_ior" type="float" value="1.5" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.2,0.2,0.8" />
</legacy_metallicpaint>
<surfacematerial name="M_legacy_metallicpaint" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_legacy_metallicpaint" />
</surfacematerial>

<legacy_concrete name="SR_legacy_concrete" type="surfaceshader" >
<input name="color" type="color3"/>
<input name="sealant" type="float"/>
<input name="finish_bump" type="float"/>
<input name="color" type="color3" value="0.6,0.6,0.6" />
<input name="sealant" type="float" value="0" />
<input name="finish_bump" type="float" value="0" />
<input name="tint_enable" type="boolean" value="true" />
<input name="tint_color" type="color3" value="0.5,0.5,0.95" />
<input name="bump_broomstraight" type="vector3" nodename="texture_broomstraight"/>
<input name="bump_broomcurved" type="vector3" nodename="texture_broomcurved"/>
<input name="bump_smooth" type="vector3" nodename="texture_smooth"/>
<input name="bump_polished" type="vector3" nodename="texture_polished"/>
<input name="bump_custom" type="vector3" nodename="texture_custom"/>
<input name="weathering_enable" type="boolean" />
<input name="weathering_type" type="float" />
<input name="weathering_enable" type="boolean" value="true" />
<input name="weathering_type" type="float" value="0" />
<input name="weathering_custom" type="color3" nodename="image_color3" />
<input name="weathering_bump" type="color3" nodename="image_color4" />
</legacy_concrete>
Expand Down Expand Up @@ -180,11 +180,11 @@
</image>

<legacy_wallpaint name="SR_legacy_wallpaint" type="surfaceshader" >
<input name="color" type="color3" />
<input name="finish" type="float" />
<input name="application" type="float" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="color" type="color3" value="0.1,0.9,0.1" />
<input name="finish" type="float" value="3" />
<input name="application" type="float" value="0" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="normal_roller" type="vector3" nodename="roller_map" />
<input name="normal_brush" type="vector3" nodename="brush_map" />
<input name="normal_spray" type="vector3" nodename="spray_map" />
Expand Down Expand Up @@ -217,14 +217,14 @@

<legacy_ceramic name="SR_legacy_ceramic" type="surfaceshader" >
<input name="color" type="color3" value="0.75,0.55,0.65"/>
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="type" type="float" />
<input name="finish" type="float" />
<input name="finish_bump_enable" type="boolean" />
<input name="finish_bump" type="float" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.5,0.5,0.95" />
<input name="type" type="float" value="0" />
<input name="finish" type="float" value="1" />
<input name="finish_bump_enable" type="boolean" value="false" />
<input name="finish_bump" type="float" value="0" />
<input name="custom_finish_normal" type="vector3" nodename="height_map3_ceramic" />
<input name="relief_pattern_enable" type="boolean" />
<input name="relief_pattern_enable" type="boolean" value="false" />
<input name="relief_pattern_normal" type="vector3" nodename="height_map1_ceramic" />
<output name="out" type="surfaceshader" />
</legacy_ceramic>
Expand All @@ -246,12 +246,12 @@
<input name="color" type="float" value="6" />
<input name="custom_color" type="color3" value="0.0,0.99,0.0" />
<input name="test_sRGB" type="boolean" value="true" />
<input name="reflectance" type="float" />
<input name="reflectance" type="float" value="0.06" />
<input name="refraction_ior" type="float" value="2" />
<input name="custom_ior" type="float" />
<input name="custom_ior" type="float" value="1.8" />
<input name="roughness" type="float" value="0.1" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.5,0.5,0.8" />
<input name="relief_enable" type="boolean" value="true" />
<input name="relief_type" type="float" value="1" />
<input name="normal_rippled" type="vector3" nodename="normal_map_rippled" />
Expand All @@ -276,11 +276,11 @@

<legacy_water name="SR_legacy_water" type="surfaceshader" >
<input name="type" type="float" value="2" />
<input name="test_sRGB" type="boolean" />
<input name="test_sRGB" type="boolean" value="false" />
<input name="secondary_color" type="float" value="7" />
<input name="custom_color" type="color3" value="0,0,1" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="custom_color" type="color3" value="0.1,0.1,0.95" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="bump_swimming_pool" type="vector3" nodename="height_map1_water"/>
<input name="bump_generic_refl_pool" type="vector3" nodename="height_map_water"/>
<input name="bump_generic_stream" type="vector3" nodename="height_map1_water"/>
Expand All @@ -307,17 +307,17 @@
</adsk:height_map>

<legacy_stone name="SR_legacy_stone" type="surfaceshader" >
<input name="color" type="color3" />
<input name="finish" type="float" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="color" type="color3" value="0.5,0.5,0.5" />
<input name="finish" type="float" value="2" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="finish_bump_enable" type="boolean" value="true" />
<input name="finish_bump" type="float" />
<input name="finish_bump" type="float" value="0" />
<input name="finish_granite" type="vector3" nodename="test_granite_bump" />
<input name="finish_marble" type="vector3" nodename="test_marble_bump" />
<input name="finish_wall" type="vector3" nodename="test_stonewall_bump" />
<input name="custom_finish" type="vector3" nodename="height_map1_stone"/>
<input name="relief_pattern_enable" type="boolean" />
<input name="relief_pattern_enable" type="boolean" value="false" />
<input name="relief_pattern" type="vector3" nodename="height_map2_stone" />
</legacy_stone>
<surfacematerial name="M_legacy_stone" type="material">
Expand Down Expand Up @@ -353,11 +353,11 @@
</adsk:height_map>

<legacy_masonry name="SR_legacy_masonry" type="surfaceshader" >
<input name="type" type="float" />
<input name="color" type="color3" />
<input name="tint_enable" type="boolean" />
<input name="tint_color" type="color3" />
<input name="finish" type="float" />
<input name="type" type="float" value="0" />
<input name="color" type="color3" value="0.5,0.5,0.5" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.95,0.5,0.5" />
<input name="finish" type="float" value="1" />
<input name="relief_enable" type="boolean" value="true" />
<input name="relief_image" type="vector3" nodename="test_bump_masonry" />
</legacy_masonry>
Expand All @@ -371,34 +371,34 @@
</adsk:height_map>

<legacy_generic name="SR_legacy_generic" type="surfaceshader" >
<input name="diffuse_color" type="color3"/>
<input name="diffuse_image_enable" type="boolean"/>
<input name="diffuse_image" type="color3"/>
<input name="diffuse_image_fade" type="float"/>
<input name="tint_enable" type="boolean"/>
<input name="tint_color" type="color3"/>
<input name="glossiness" type="float"/>
<input name="metallic_highlights" type="boolean"/>
<input name="reflectivity_enable" type="boolean"/>
<input name="reflectivity" type="float"/>
<input name="transparency_enable" type="boolean"/>
<input name="transparency_amount" type="float"/>
<input name="transparency_image_enable" type="boolean"/>
<input name="diffuse_color" type="color3" value="0.5,0.9,0.2" />
<input name="diffuse_image_enable" type="boolean" value="false" />
<!-- <input name="diffuse_image" type="color3"/> -->
<input name="diffuse_image_fade" type="float" value="1" />
<input name="tint_enable" type="boolean" value="false" />
<input name="tint_color" type="color3" value="0.9,0.3,0.2" />
<input name="glossiness" type="float" value="0.75" />
<input name="metallic_highlights" type="boolean" value="false" />
<input name="reflectivity_enable" type="boolean" value="true" />
<input name="reflectivity" type="float" value="0.07" />
<input name="transparency_enable" type="boolean" value="false" />
<input name="transparency_amount" type="float" value="0.98" />
<input name="transparency_image_enable" type="boolean" value="false" />
<input name="transparency_image" type="float" nodename="test_transparency"/>
<input name="transparency_image_fade" type="float"/>
<input name="refraction" type="float" />
<input name="custom_refraction" type="float"/>
<input name="translucency" type="float" />
<input name="bump_enable" type="boolean" />
<input name="bump" type="vector3" />
<input name="cutout_enable" type="boolean"/>
<input name="transparency_image_fade" type="float" value="1" />
<input name="refraction" type="float" value="4" />
<input name="custom_refraction" type="float" value="1.8" />
<input name="translucency" type="float" value="0" />
<input name="bump_enable" type="boolean" value="false" />
<!-- <input name="bump" type="vector3" /> -->
<input name="cutout_enable" type="boolean" value="false" />
<input name="cutout_image" type="color3" nodename="test_cutout"/>
<input name="emission_enable" type="boolean"/>
<input name="emission_color" type="color3"/>
<input name="luminance" type="float"/>
<input name="custom_luminance" type="float"/>
<input name="color_temperature" type="float"/>
<input name="custom_color_temperature" type="float"/>
<input name="emission_enable" type="boolean" value="false" />
<input name="emission_color" type="color3" value="1,1,1" />
<input name="luminance" type="float" value="1" />
<input name="custom_luminance" type="float" value="500" />
<input name="color_temperature" type="float" value="5" />
<input name="custom_color_temperature" type="float" value="4800" />
</legacy_generic>
<surfacematerial name="M_legacy_generic" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_legacy_generic" />
Expand Down

0 comments on commit ea3c401

Please sign in to comment.