Skip to content

Commit

Permalink
Extend supported configurations (#31)
Browse files Browse the repository at this point in the history
* docs update.

* Update configuration support.
  • Loading branch information
kwokcb authored Nov 20, 2024
1 parent 681c5bb commit 29e9581
Show file tree
Hide file tree
Showing 37 changed files with 2,340 additions and 1,809 deletions.
33 changes: 33 additions & 0 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,39 @@ <h4 id="test-data">Test Data</h4>
</td>
</tr>
<tr>
<td>Example where the root shader is an "unlit shader". Shader is mapped to a ramp.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: single</li>
<li>Compound nodes: yes.</li>
<li>Downstream shader: &quot;unlit shader&quot;</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph unlit_graph
unlit_graph_output_color4([output_color4:color3])
style unlit_graph_output_color4 fill:#09D, color:#FFF
unlit_graph_ramplr_color4[ramplr_color4:color3]
end
unlitshader[unlitshader:surfaceshader]
MAT_unlitshader([MAT_unlitshader:material])
style MAT_unlitshader fill:#090, color:#FFF
unlit_graph_ramplr_color4 --> unlit_graph_output_color4
unlit_graph_output_color4 --"emission_color"--> unlitshader
unlitshader --"surfaceshader"--> MAT_unlitshader
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph_fromgltf.mtlx">MTLX from GLTF</a>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.png?raw=true">
</td>
</tr>
<tr>
<td>Example MaterialX version of "boombox" example (from Khronos sample assets) that shows file name resolving.
<ul>
<li>Graph count: single</li>
Expand Down
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,42 @@ graph LR
</td>
</tr>

<tr>
<td>Example where the root shader is an "unlit shader". Shader is mapped to a ramp.

- Graph count: single
- Graph inputs: none
- Graph outputs: single
- Compound nodes: yes.
- Downstream shader: "unlit shader"

```mermaid
graph TB
subgraph unlit_graph
unlit_graph_output_color4([output_color4:color3])
style unlit_graph_output_color4 fill:#09D, color:#FFF
unlit_graph_ramplr_color4[ramplr_color4:color3]
end
unlitshader[unlitshader:surfaceshader]
MAT_unlitshader([MAT_unlitshader:material])
style MAT_unlitshader fill:#090, color:#FFF
unlit_graph_ramplr_color4 --> unlit_graph_output_color4
unlit_graph_output_color4 --"emission_color"--> unlitshader
unlitshader --"surfaceshader"--> MAT_unlitshader
```

</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph_fromgltf.mtlx">MTLX from GLTF</a>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.png?raw=true">
</td>
</tr>

<tr>
<td>Example MaterialX version of "boombox" example (from Khronos sample assets) that shows file name resolving.

Expand Down
38 changes: 38 additions & 0 deletions documents/README_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,44 @@ graph LR
</td>
</tr>

<tr>
<td>Example where the root shader is an "unlit shader". Shader is mapped to a ramp.

- Graph count: single
- Graph inputs: none
- Graph outputs: single
- Compound nodes: yes.
- Downstream shader: "unlit shader"

<pre><code class="language-mermaid"><div class="mermaid">

graph TB
subgraph unlit_graph
unlit_graph_output_color4([output_color4:color3])
style unlit_graph_output_color4 fill:#09D, color:#FFF
unlit_graph_ramplr_color4[ramplr_color4:color3]
end
unlitshader[unlitshader:surfaceshader]
MAT_unlitshader([MAT_unlitshader:material])
style MAT_unlitshader fill:#090, color:#FFF
unlit_graph_ramplr_color4 --> unlit_graph_output_color4
unlit_graph_output_color4 --"emission_color"--> unlitshader
unlitshader --"surfaceshader"--> MAT_unlitshader
</div></code></pre>


</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph_fromgltf.mtlx">MTLX from GLTF</a>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.png?raw=true">
</td>
</tr>

<tr>
<td>Example MaterialX version of "boombox" example (from Khronos sample assets) that shows file name resolving.

Expand Down
Loading

0 comments on commit 29e9581

Please sign in to comment.