Ajout du projet Depths sur Git

This commit is contained in:
2026-04-30 12:24:52 +02:00
commit a143ea22c7
6651 changed files with 77423 additions and 0 deletions
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<materialx version="1.38">
<!--
Copyright Contributors to the MaterialX Project
SPDX-License-Identifier: Apache-2.0
Declarations for GLSL implementations of standard nodes included in the MaterialX specification.
-->
<!-- ======================================================================== -->
<!-- View-dependent nodes -->
<!-- ======================================================================== -->
<!-- <viewdirection> -->
<implementation name="IM_viewdirection_vector3_genglsl" nodedef="ND_viewdirection_vector3" target="genglsl" />
</materialx>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<materialx version="1.38">
<!--
Copyright Contributors to the MaterialX Project
SPDX-License-Identifier: Apache-2.0
Declarations for MDL implementations of standard nodes included in the MaterialX specification.
-->
<!-- ======================================================================== -->
<!-- View-dependent nodes -->
<!-- ======================================================================== -->
<!-- <viewdirection> -->
<implementation name="IM_viewdirection_vector3_genmdl" nodedef="ND_viewdirection_vector3" sourcecode="materialx::stdlib_{{MDL_VERSION_SUFFIX}}::mx_viewdirection_vector3(mxp_space:{{space}})" target="genmdl" />
</materialx>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<materialx version="1.38">
<!--
Copyright Contributors to the MaterialX Project
SPDX-License-Identifier: Apache-2.0
Declarations for MSL implementations of standard nodes included in the MaterialX specification.
-->
<!-- ======================================================================== -->
<!-- View-dependent nodes -->
<!-- ======================================================================== -->
<!-- <viewdirection> -->
<implementation name="IM_viewdirection_vector3_genmsl" nodedef="ND_viewdirection_vector3" target="genmsl" />
</materialx>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<materialx version="1.38">
<!--
Copyright Contributors to the MaterialX Project
SPDX-License-Identifier: Apache-2.0
Declarations for OSL implementations of standard nodes included in the MaterialX specification.
-->
<!-- ======================================================================== -->
<!-- View-dependent nodes -->
<!-- ======================================================================== -->
<!-- <viewdirection> -->
<implementation name="IM_viewdirection_vector3_genosl" nodedef="ND_viewdirection_vector3" sourcecode="transform({{space}}, I)" target="genosl" />
</materialx>
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<materialx version="1.38">
<!--
Copyright Contributors to the MaterialX Project
SPDX-License-Identifier: Apache-2.0
Declarations of standard data types and nodes included in the MaterialX specification.
-->
<!-- ======================================================================== -->
<!-- View-dependent properties -->
<!-- ======================================================================== -->
<geompropdef name="Vworld" type="vector3" geomprop="viewdirection" space="world" />
<!-- ======================================================================== -->
<!-- View-dependent nodes -->
<!-- ======================================================================== -->
<!--
Node: <viewdirection>
The current scene view direction, as defined by the shading environment.
-->
<nodedef name="ND_viewdirection_vector3" node="viewdirection" nodegroup="npr">
<input name="space" type="string" value="world" enum="model,object,world" uniform="true" />
<output name="out" type="vector3" default="0.0, 0.0, 1.0" />
</nodedef>
<!--
Node: <facingratio>
Return the geometric facing ratio, computed as the dot product between the
view direction and geometric normal.
-->
<nodedef name="ND_facingratio_float" node="facingratio" nodegroup="npr">
<input name="viewdirection" type="vector3" defaultgeomprop="Vworld" />
<input name="normal" type="vector3" defaultgeomprop="Nworld" />
<input name="faceforward" type="boolean" value="true" />
<input name="invert" type="boolean" value="false" />
<output name="out" type="float" default="0.0" />
</nodedef>
<!--
Node: <gooch_shade>
Compute Gooch Shading.
-->
<nodedef name="ND_gooch_shade" node="gooch_shade" nodegroup="npr" doc="Compute Gooch shading">
<input name="warm_color" type="color3" value="0.8, 0.8, 0.7" uiname="Warm Color" doc="Warm color" />
<input name="cool_color" type="color3" value="0.3, 0.3, 0.8" uiname="Cool Color" doc="Cool color" />
<input name="specular_intensity" type="float" value="1" uimin="0" uimax="1" uiname="Specular Intensity" doc="Specular Intensity" />
<input name="shininess" type="float" value="64" uimin="1" uisoftmax="256" uiname="Shininess" doc="Specular Power" />
<input name="light_direction" type="vector3" value="1, -0.5, -0.5" uimin="-1, -1, -1" uimax="1, 1, 1" uiname="Light Direction" doc="Light vector in world space" />
<output name="out" type="color3" />
</nodedef>
</materialx>
@@ -0,0 +1,114 @@
<?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>
<invert name="N_invert" type="float">
<input name="in" type="float" nodename="N_facing" />
</invert>
<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>
<!--
Node: <gooch_shade>
-->
<nodegraph name="NG_gooch_shade" type="color3" nodedef="ND_gooch_shade">
<normal name="normal" type="vector3" >
<input name="space" type="string" value="world" />
</normal>
<viewdirection name="viewdir" type="vector3" >
<input name="space" type="string" value="world" />
</viewdirection>
<normalize name="unit_normal" type="vector3">
<input name="in" type="vector3" nodename="normal" />
</normalize>
<normalize name="unit_viewdir" type="vector3">
<input name="in" type="vector3" nodename="viewdir" />
</normalize>
<normalize name="unit_lightdir" type="vector3">
<input name="in" type="vector3" interfacename="light_direction" />
</normalize>
<dotproduct name="NdotL" type="float">
<input name="in1" type="vector3" nodename="unit_normal" />
<input name="in2" type="vector3" nodename="unit_lightdir" />
</dotproduct>
<add name="one_plus_NdotL" type="float">
<input name="in2" type="float" nodename="NdotL" />
<input name="in1" type="float" value="1" />
</add>
<divide name="cool_intensity" type="float">
<input name="in1" type="float" nodename="one_plus_NdotL" />
<input name="in2" type="float" value="2" />
</divide>
<mix name="diffuse" type="color3">
<input name="bg" type="color3" interfacename="warm_color" />
<input name="fg" type="color3" interfacename="cool_color" />
<input name="mix" type="float" nodename="cool_intensity" />
</mix>
<reflect name="view_reflect" type="vector3">
<input name="in" type="vector3" nodename="unit_viewdir" />
<input name="normal" type="vector3" nodename="unit_normal" />
</reflect>
<multiply name="invert_lightdir" type="vector3">
<input name="in1" type="vector3" nodename="unit_lightdir" />
<input name="in2" type="float" value="-1" />
</multiply>
<dotproduct name="VdotR" type="float">
<input name="in1" type="vector3" nodename="invert_lightdir" />
<input name="in2" type="vector3" nodename="view_reflect" />
</dotproduct>
<max name="VdotR_nonnegative" type="float">
<input name="in1" type="float" nodename="VdotR" />
<input name="in2" type="float" value="0" />
</max>
<power name="specular_highlight" type="float">
<input name="in1" type="float" nodename="VdotR_nonnegative" />
<input name="in2" type="float" interfacename="shininess" />
</power>
<multiply name="specular" type="float">
<input name="in1" type="float" nodename="specular_highlight" />
<input name="in2" type="float" interfacename="specular_intensity" />
</multiply>
<add name="final_color" type="color3">
<input name="in1" type="color3" nodename="diffuse" />
<input name="in2" type="float" nodename="specular" />
</add>
<output name="out" type="color3" nodename="final_color" />
</nodegraph>
</materialx>