Skip to content

Commit

Permalink
Deploying to gh-pages from @ c34a106 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Jul 30, 2023
0 parents commit 1f8e8d0
Show file tree
Hide file tree
Showing 323 changed files with 204,216 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,074 changes: 21,074 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.
59 changes: 59 additions & 0 deletions Lights/envmap_shader.mtlx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0"?>
<materialx version="1.38">

<!-- Custom node: <viewdir> -->
<!-- Required by environment shader graph below -->
<nodedef name="ND_viewdir_vector3" node="viewdir">
<output name="out" type="vector3" default="0.0, 0.0, 1.0" />
</nodedef>
<implementation name="IM_viewdir_vector3_genglsl" nodedef="ND_viewdir_vector3" target="genglsl" />
<implementation name="IM_viewdir_vector3_genmsl" nodedef="ND_viewdir_vector3" target="genmsl" />
<nodegraph name="environmentDraw">

<!-- Get view direction -->
<viewdir 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" uniform="true" />
<input name="texcoord" type="vector2" nodename="mapUvs" />
<input name="uaddressmode" type="string" value="periodic" uniform="true" />
<input name="vaddressmode" type="string" value="clamp" uniform="true" />
<input name="filtertype" type="string" value="linear" uniform="true" />
</image>

<!-- Return the resulting color -->
<output name="out" type="color3" nodename="envImage" />
</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>
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.
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>
Loading

0 comments on commit 1f8e8d0

Please sign in to comment.