Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion libraries/bxdf/gltf_pbr.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@
-->
<nodedef name="ND_gltf_image_vector3_vector3_1_0" node="gltf_image" version="1.0" isdefaultversion="true" nodegroup="texture2d">
<input name="file" type="filename" uniform="true" value="" />
<input name="factor" type="vector3" value="1,1,1" />
<input name="default" type="vector3" value="0, 0, 0" />
<input name="texcoord" type="vector2" defaultgeomprop="UV0" />
<input name="pivot" type="vector2" value="0, 1" />
Expand Down Expand Up @@ -614,7 +615,11 @@
<input name="offset" type="vector2" nodename="negate_offset" />
<input name="operationorder" type="integer" interfacename="operationorder" />
</place2d>
<output name="out" type="vector3" nodename="image" />
<multiply name="scale_image" type="vector3">
<input name="in1" type="vector3" interfacename="factor" />
<input name="in2" type="vector3" nodename="image" />
</multiply>
<output name="out" type="vector3" nodename="scale_image" />
</nodegraph>

<!---
Expand Down
2 changes: 2 additions & 0 deletions resources/Materials/Examples/GltfPbr/gltf_pbr_boombox.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<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" />
<input name="color" type="color4" value="1.0, 1.0, 1.0, 1.0" />
</gltf_colorimage>
<gltf_image name="image_orm" type="vector3">
<input name="file" type="filename" value="BoomBox_occlusionRoughnessMetallic.png" />
<input name="factor" type="vector3" value="1.0, 1.0, 1.0" />
</gltf_image>
<gltf_normalmap name="image_normal" type="vector3">
<input name="file" type="filename" value="BoomBox_normal.png" />
Expand Down
Loading