forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'aswf/main' into graph_io
- Loading branch information
Showing
64 changed files
with
380 additions
and
270 deletions.
There are no files selected for viewing
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
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
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
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
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
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,48 @@ | ||
<?xml version="1.0"?> | ||
<materialx version="1.38"> | ||
<!-- | ||
Copyright Contributors to the MaterialX Project | ||
SPDX-License-Identifier: Apache-2.0 | ||
Graph definitions of standard nodes included in the MaterialX specification. | ||
--> | ||
|
||
<!-- ======================================================================== --> | ||
<!-- View-dependent nodes --> | ||
<!-- ======================================================================== --> | ||
|
||
<!-- | ||
Node: <facingratio> | ||
--> | ||
<nodegraph name="NG_facingratio_float" nodedef="ND_facingratio_float"> | ||
<dotproduct name="N_dotproduct" type="float"> | ||
<input name="in1" type="vector3" interfacename="viewdirection" /> | ||
<input name="in2" type="vector3" interfacename="normal" /> | ||
</dotproduct> | ||
<multiply name="N_scale" type="float"> | ||
<input name="in1" type="float" nodename="N_dotproduct" /> | ||
<input name="in2" type="float" value="-1" /> | ||
</multiply> | ||
<absval name="N_absval" type="float"> | ||
<input name="in" type="float" nodename="N_dotproduct" /> | ||
</absval> | ||
<ifequal name="N_facing" type="float"> | ||
<input name="value1" type="boolean" interfacename="faceforward" /> | ||
<input name="value2" type="boolean" value="true" /> | ||
<input name="in1" type="float" nodename="N_absval" /> | ||
<input name="in2" type="float" nodename="N_scale" /> | ||
</ifequal> | ||
<subtract name="N_invert" type="float"> | ||
<input name="in1" type="float" value="1" /> | ||
<input name="in2" type="float" nodename="N_facing" /> | ||
</subtract> | ||
<ifequal name="N_result" type="float"> | ||
<input name="value1" type="boolean" interfacename="invert" /> | ||
<input name="value2" type="boolean" value="true" /> | ||
<input name="in1" type="float" nodename="N_invert" /> | ||
<input name="in2" type="float" nodename="N_facing" /> | ||
</ifequal> | ||
<output name="out" type="float" nodename="N_result" /> | ||
</nodegraph> | ||
|
||
</materialx> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...es/stdlib/genglsl/mx_smoothstep_vec2.glsl → ...stdlib/genglsl/mx_smoothstep_vector2.glsl
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
2 changes: 1 addition & 1 deletion
2
...es/stdlib/genglsl/mx_smoothstep_vec3.glsl → ...stdlib/genglsl/mx_smoothstep_vector3.glsl
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
2 changes: 1 addition & 1 deletion
2
...es/stdlib/genglsl/mx_smoothstep_vec4.glsl → ...stdlib/genglsl/mx_smoothstep_vector4.glsl
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
Oops, something went wrong.