-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ c34a106 🚀
- Loading branch information
0 parents
commit 1f8e8d0
Showing
323 changed files
with
204,216 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
Binary file not shown.
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.
Binary file not shown.
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.
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.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Binary file added
BIN
+4.26 MB
Materials/Examples/GltfPbr/boombox/BoomBox_occlusionRoughnessMetallic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.