Skip to content

Commit

Permalink
Deploying to gh-pages from @ ea4cea0 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nlenihan-wetafx committed Oct 17, 2024
0 parents commit 1936823
Show file tree
Hide file tree
Showing 337 changed files with 222,985 additions and 0 deletions.
Binary file added Geometry/boombox.glb
Binary file not shown.
Binary file added Geometry/chess_set.glb
Binary file not shown.
Binary file added Geometry/shaderball.glb
Binary file not shown.
Binary file added Images/brass_color.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brass_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brick_base_gray.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brick_dirt_mask.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brick_mask.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brick_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brick_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/brick_variation_mask.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/cloth.bmp
Binary file not shown.
Binary file added Images/cloth.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/cloth.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/cloth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/cloth.tga
Binary file not shown.
Binary file added Images/greysphere_calibration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/marble.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/mesh_wire_norm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/plain_heightmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/wood_color.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/wood_roughness.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions JsMaterialXCore.js

Large diffs are not rendered by default.

Binary file added JsMaterialXCore.wasm
Binary file not shown.
26,214 changes: 26,214 additions & 0 deletions JsMaterialXGenShader.data

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions JsMaterialXGenShader.js

Large diffs are not rendered by default.

Binary file added JsMaterialXGenShader.wasm
Binary file not shown.
60 changes: 60 additions & 0 deletions Lights/environment_map.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">

<nodegraph name="envMap">

<!-- Get view direction -->
<viewdirection name="viewDir" type="vector3" />

<!-- Compute longitude coordinate -->
<separate3 name="viewDirChannels" type="multioutput">
<input name="in" type="vector3" nodename="viewDir" />
</separate3>
<atan2 name="angleXZ" type="float">
<input name="iny" type="float" nodename="viewDirChannels" output="outx" />
<input name="inx" type="float" nodename="viewDirChannels" output="outz" />
</atan2>
<multiply name="scaleXZ" type="float">
<input name="in1" type="float" nodename="angleXZ" />
<input name="in2" type="float" value="-0.15915494" />
</multiply>
<add name="longitude" type="float">
<input name="in1" type="float" nodename="scaleXZ" />
<input name="in2" type="float" value="0.5" />
</add>

<!-- Compute latitude coordinate -->
<asin name="angleY" type="float">
<input name="in" type="float" nodename="viewDirChannels" output="outy" />
</asin>
<multiply name="scaleY" type="float">
<input name="in1" type="float" nodename="angleY" />
<input name="in2" type="float" value="0.31830989" />
</multiply>
<add name="latitude" type="float">
<input name="in1" type="float" nodename="scaleY" />
<input name="in2" type="float" value="0.5" />
</add>

<!-- Sample the latitude-longitude map -->
<combine2 name="mapUvs" type="vector2">
<input name="in1" type="float" nodename="longitude" />
<input name="in2" type="float" nodename="latitude" />
</combine2>
<image name="envImage" type="color3">
<input name="file" type="filename" value="resources/Lights/san_giuseppe_bridge.hdr" />
<input name="texcoord" type="vector2" nodename="mapUvs" />
<input name="uaddressmode" type="string" value="periodic" />
<input name="vaddressmode" type="string" value="clamp" />
<input name="filtertype" type="string" value="linear" />
</image>

<multiply name="envImageAdjusted" type="color3">
<input name="in1" type="color3" nodename="envImage" />
<input name="in2" type="float" value="1.0" />
</multiply>

<!-- Return the resulting color -->
<output name="out" type="color3" nodename="envImageAdjusted" />
</nodegraph>
</materialx>
Binary file added Lights/goegap.hdr
Binary file not shown.
Binary file added Lights/goegap_split.hdr
Binary file not shown.
8 changes: 8 additions & 0 deletions Lights/goegap_split.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<materialx version="1.39">
<directional_light name="dir_light" type="lightshader">
<input name="direction" type="vector3" value="0.43277, -0.725547, -0.535062" />
<input name="color" type="color3" value="0.993688, 1, 0.993529" />
<input name="intensity" type="float" value="5.93724" />
</directional_light>
</materialx>
Binary file added Lights/irradiance/goegap.hdr
Binary file not shown.
Binary file added Lights/irradiance/goegap_split.hdr
Binary file not shown.
Binary file added Lights/irradiance/san_giuseppe_bridge.hdr
Binary file not shown.
Binary file added Lights/irradiance/san_giuseppe_bridge_split.hdr
Binary file not shown.
Binary file added Lights/irradiance/table_mountain.hdr
Binary file not shown.
Binary file added Lights/irradiance/table_mountain_split.hdr
Binary file not shown.
Binary file added Lights/san_giuseppe_bridge.hdr
Binary file not shown.
Binary file added Lights/san_giuseppe_bridge_split.hdr
Binary file not shown.
8 changes: 8 additions & 0 deletions Lights/san_giuseppe_bridge_split.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<materialx version="1.39">
<directional_light name="dir_light" type="lightshader">
<input name="direction" type="vector3" value="0.514434, -0.479014, -0.711269" />
<input name="color" type="color3" value="1, 0.894474, 0.567234" />
<input name="intensity" type="float" value="2.52776" />
</directional_light>
</materialx>
Binary file added Lights/table_mountain.hdr
Binary file not shown.
Binary file added Lights/table_mountain_split.hdr
Binary file not shown.
8 changes: 8 additions & 0 deletions Lights/table_mountain_split.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<materialx version="1.39">
<directional_light name="dir_light" type="lightshader">
<input name="direction" type="vector3" value="0.757663, -0.126589, -0.640251" />
<input name="color" type="color3" value="1, 0.844753, 0.418417" />
<input name="intensity" type="float" value="4.19121" />
</directional_light>
</materialx>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709" fileprefix="boombox/">
<gltf_colorimage name="image_basecolor" type="multioutput">
<input name="file" type="filename" value="BoomBox_baseColor.png" colorspace="srgb_texture" />
</gltf_colorimage>
<gltf_image name="image_orm" type="vector3">
<input name="file" type="filename" value="BoomBox_occlusionRoughnessMetallic.png" />
</gltf_image>
<gltf_normalmap name="image_normal" type="vector3">
<input name="file" type="filename" value="BoomBox_normal.png" />
</gltf_normalmap>
<gltf_image name="image_emission" type="color3">
<input name="file" type="filename" value="BoomBox_emissive.png" colorspace="srgb_texture" />
</gltf_image>
<separate3 name="image_orm_channels" type="multioutput">
<input name="in" type="vector3" nodename="image_orm" />
</separate3>
<gltf_pbr name="SR_boombox" type="surfaceshader">
<input name="base_color" type="color3" nodename="image_basecolor" output="outcolor" />
<input name="alpha" type="float" nodename="image_basecolor" output="outa" />
<input name="metallic" type="float" nodename="image_orm_channels" output="outz" />
<input name="roughness" type="float" nodename="image_orm_channels" output="outy" />
<input name="occlusion" type="float" nodename="image_orm_channels" output="outx" />
<input name="normal" type="vector3" nodename="image_normal" />
<input name="emissive" type="color3" nodename="image_emission" />
</gltf_pbr>
<surfacematerial name="Material_boombox" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_boombox" />
</surfacematerial>
</materialx>
12 changes: 12 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_carpaint.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<gltf_pbr name="SR_carpaint" type="surfaceshader">
<input name="base_color" type="color3" value="0.0518895, 0.29606, 0.425324" />
<input name="metallic" type="float" value="0" />
<input name="roughness" type="float" value="0.4" />
<input name="clearcoat" type="float" value="1" />
</gltf_pbr>
<surfacematerial name="PBR_Car_Paint" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_carpaint" />
</surfacematerial>
</materialx>
33 changes: 33 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_default.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<gltf_pbr name="SR_default" type="surfaceshader">
<input name="base_color" type="color3" value="1.0, 1.0, 1.0" />
<input name="metallic" type="float" value="1" />
<input name="roughness" type="float" value="1" />
<input name="normal" type="vector3" value="0, 0, 1" />
<input name="occlusion" type="float" value="0" />
<input name="transmission" type="float" value="0" />
<input name="specular" type="float" value="1" />
<input name="specular_color" type="color3" value="1, 1, 1" />
<input name="ior" type="float" value="1.5" />
<input name="alpha" type="float" value="1" />
<input name="alpha_mode" type="integer" value="0" />
<input name="alpha_cutoff" type="float" value="0.5" />
<input name="iridescence" type="float" value="0" />
<input name="iridescence_ior" type="float" value="1.3" />
<input name="iridescence_thickness" type="float" value="300" />
<input name="sheen_color" type="color3" value="0, 0, 0" />
<input name="sheen_roughness" type="float" value="0" />
<input name="clearcoat" type="float" value="0" />
<input name="clearcoat_roughness" type="float" value="0" />
<input name="clearcoat_normal" type="vector3" value="0, 0, 1" />
<input name="emissive" type="color3" value="0, 0, 0" />
<input name="emissive_strength" type="float" value="1" />
<input name="thickness" type="float" value="0" />
<input name="attenuation_distance" type="float" value="100000" />
<input name="attenuation_color" type="color3" value="0, 0, 0" />
</gltf_pbr>
<surfacematerial name="Default" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_default" />
</surfacematerial>
</materialx>
12 changes: 12 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_glass.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<gltf_pbr name="SR_glass" type="surfaceshader">
<input name="metallic" type="float" value="0" />
<input name="roughness" type="float" value="0.01" />
<input name="transmission" type="float" value="1" />
<input name="ior" type="float" value="1.52" />
</gltf_pbr>
<surfacematerial name="PBR_Glass" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_glass" />
</surfacematerial>
</materialx>
10 changes: 10 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_gold.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<gltf_pbr name="SR_gold" type="surfaceshader">
<input name="base_color" type="color3" value="0.944, 0.776, 0.373" />
<input name="roughness" type="float" value="0.02" />
</gltf_pbr>
<surfacematerial name="PBR_Gold" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_gold" />
</surfacematerial>
</materialx>
11 changes: 11 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_plastic.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<gltf_pbr name="SR_plastic" type="surfaceshader">
<input name="base_color" type="color3" value="0.104704, 0.241883, 0.818" />
<input name="metallic" type="float" value="0" />
<input name="roughness" type="float" value="0.324675" />
</gltf_pbr>
<surfacematerial name="PBR_Plastic" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_plastic" />
</surfacematerial>
</materialx>
13 changes: 13 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_aluminum_brushed.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Aluminum_Brushed" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.912, 0.914, 0.920" />
<input name="base_metalness" type="float" value="1.0" />
<input name="specular_color" type="color3" value="0.970, 0.979, 0.988" />
<input name="specular_roughness" type="float" value="0.2" />
<input name="specular_roughness_anisotropy" type="float" value="0.9" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_carpaint.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Car_Paint" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.1, 0.6, 0.9" />
<input name="specular_ior" type="float" value="1.6" />
<input name="specular_roughness" type="float" value="0.3" />
<input name="coat_weight" type="float" value="1" />
<input name="coat_roughness" type="float" value="0.02" />
<input name="coat_ior" type="float" value="1.6" />
</open_pbr_surface>
</materialx>
46 changes: 46 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_default.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Default" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
<input name="displacementshader" type="displacementshader" value="" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_weight" type="float" value="1.0" />
<input name="base_color" type="color3" value="0.8, 0.8, 0.8" />
<input name="base_diffuse_roughness" type="float" value="0.0" />
<input name="base_metalness" type="float" value="0.0" />
<input name="specular_weight" type="float" value="1.0" />
<input name="specular_color" type="color3" value="1, 1, 1" />
<input name="specular_roughness" type="float" value="0.3" />
<input name="specular_ior" type="float" value="1.5" />
<input name="specular_roughness_anisotropy" type="float" value="0.0" />
<input name="transmission_weight" type="float" value="0.0" />
<input name="transmission_color" type="color3" value="1, 1, 1" />
<input name="transmission_depth" type="float" value="0.0" />
<input name="transmission_scatter" type="color3" value="0, 0, 0" />
<input name="transmission_scatter_anisotropy" type="float" value="0.0" />
<input name="transmission_dispersion_scale" type="float" value="0.0" />
<input name="transmission_dispersion_abbe_number" type="float" value="20.0" />
<input name="subsurface_weight" type="float" value="0" />
<input name="subsurface_color" type="color3" value="0.8, 0.8, 0.8" />
<input name="subsurface_radius" type="float" value="1.0" />
<input name="subsurface_radius_scale" type="color3" value="1.0, 0.5, 0.25" />
<input name="subsurface_scatter_anisotropy" type="float" value="0.0" />
<input name="fuzz_weight" type="float" value="0.0" />
<input name="fuzz_color" type="color3" value="1, 1, 1" />
<input name="fuzz_roughness" type="float" value="0.5" />
<input name="coat_weight" type="float" value="0.0" />
<input name="coat_color" type="color3" value="1, 1, 1" />
<input name="coat_roughness" type="float" value="0.0" />
<input name="coat_roughness_anisotropy" type="float" value="0.0" />
<input name="coat_ior" type="float" value="1.6" />
<input name="coat_darkening" type="float" value="1.0" />
<input name="thin_film_weight" type="float" value="0" />
<input name="thin_film_thickness" type="float" value="0.5" />
<input name="thin_film_ior" type="float" value="1.4" />
<input name="emission_luminance" type="float" value="0.0" />
<input name="emission_color" type="color3" value="1, 1, 1" />
<input name="geometry_opacity" type="float" value="1" />
<input name="geometry_thin_walled" type="boolean" value="false" />
</open_pbr_surface>
</materialx>
13 changes: 13 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_glass.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Glass" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="specular_roughness" type="float" value="0.0" />
<input name="specular_ior" type="float" value="1.52" />
<input name="transmission_weight" type="float" value="1.0" />
<input name="transmission_dispersion_abbe_number" type="float" value="64" />
<input name="transmission_dispersion_scale" type="float" value="1.0" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_honey.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Honey" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="specular_roughness" type="float" value="0.0" />
<input name="specular_ior" type="float" value="1.504" />
<input name="transmission_weight" type="float" value="1.0" />
<input name="transmission_color" type="color3" value="0.83, 0.4, 0.04" />
<input name="transmission_depth" type="float" value="2" />
<input name="transmission_scatter" type="color3" value="0.9, 0.9, 0.9" />
</open_pbr_surface>
</materialx>
14 changes: 14 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_ketchup.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Ketchup" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.164, 0.006, 0.002" />
<input name="specular_roughness" type="float" value="0" />
<input name="specular_ior" type="float" value="1.3" />
<input name="subsurface_weight" type="float" value="1.0" />
<input name="subsurface_color" type="color3" value="0.164, 0.006, 0.002" />
<input name="subsurface_radius_scale" type="color3" value="0.476, 0.058, 0.039" />
</open_pbr_surface>
</materialx>
10 changes: 10 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_lightbulb.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Light_Bulb" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="emission_color" type="color3" value="1.000, 0.415, 0.099" />
<input name="emission_luminance" type="float" value="10000" />
</open_pbr_surface>
</materialx>
20 changes: 20 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_pearl.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Pearl" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.8, 0.75, 0.7" />
<input name="specular_roughness" type="float" value="0.35" />
<input name="specular_ior" type="float" value="1.5" />
<input name="subsurface_weight" type="float" value="1.0" />
<input name="subsurface_color" type="color3" value="0.8, 0.75, 0.7" />
<input name="subsurface_radius_scale" type="color3" value="0.3, 0.5, 0.3" />
<input name="coat_weight" type="float" value="1" />
<input name="coat_roughness" type="float" value="0.15" />
<input name="coat_ior" type="float" value="1.68" />
<input name="thin_film_weight" type="float" value="1.0" />
<input name="thin_film_thickness" type="float" value="0.420" />
<input name="thin_film_ior" type="float" value="2" />
</open_pbr_surface>
</materialx>
15 changes: 15 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_soapbubble.mtlx
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="Soap_Bubble" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="specular_roughness" type="float" value="0" />
<input name="specular_ior" type="float" value="1.0" />
<input name="transmission_weight" type="float" value="1.0" />
<input name="thin_film_weight" type="float" value="1.0" />
<input name="thin_film_thickness" type="float" value="0.5" />
<input name="thin_film_ior" type="float" value="1.4" />
<input name="geometry_thin_walled" type="boolean" value="true" />
</open_pbr_surface>
</materialx>
13 changes: 13 additions & 0 deletions Materials/Examples/OpenPbr/open_pbr_velvet.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709">
<surfacematerial name="Velvet" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="open_pbr_surface_surfaceshader" />
</surfacematerial>
<open_pbr_surface name="open_pbr_surface_surfaceshader" type="surfaceshader">
<input name="base_color" type="color3" value="0.02, 0.02, 0.02" />
<input name="specular_roughness" type="float" value="0.8" />
<input name="fuzz_weight" type="float" value="1" />
<input name="fuzz_color" type="color3" value="0.4, 0.4, 0.4" />
<input name="fuzz_roughness" type="float" value="0.5" />
</open_pbr_surface>
</materialx>
Loading

0 comments on commit 1936823

Please sign in to comment.