Skip to content

Commit

Permalink
Deploying to gh-pages from @ 091c35f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Apr 11, 2024
0 parents commit 2b8f4bf
Show file tree
Hide file tree
Showing 327 changed files with 206,759 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
22,930 changes: 22,930 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.
57 changes: 57 additions & 0 deletions Lights/environment_map.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">

<nodegraph name="envMap">

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

<!-- Compute longitude coordinate -->
<atan2 name="angleXZ" type="float">
<input name="in1" type="float" nodename="viewDir" channels="x" />
<input name="in2" type="float" nodename="viewDir" channels="z" />
</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="viewDir" channels="y" />
</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.38">
<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.38">
<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.38">
<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>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<materialx version="1.38" 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>
<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="z" />
<input name="roughness" type="float" nodename="image_orm" channels="y" />
<input name="occlusion" type="float" nodename="image_orm" channels="x" />
<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.38" 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.38" 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.38" 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.38" 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.38" 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>

0 comments on commit 2b8f4bf

Please sign in to comment.