-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes based on community discussion, add spec document
- Loading branch information
1 parent
3ef0e10
commit 16324b0
Showing
3 changed files
with
79 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,17 +141,17 @@ | |
A BSDF node for Chaing hair shading model. | ||
--> | ||
<nodedef name="ND_hair_chiang_bsdf" node="hair_chiang_bsdf" bsdf="R" nodegroup="pbr" doc="A BSDF node for Chiang hair shading model."> | ||
<input name="ior" type="float" value="1.55" /> | ||
<input name="tint_R" type="color3" value="1, 1, 1" /> | ||
<input name="tint_TT" type="color3" value="1, 1, 1" /> | ||
<input name="tint_TRT" type="color3" value="1, 1, 1" /> | ||
<input name="ior" type="float" value="1.55" /> | ||
<input name="roughness_R" type="vector2" value="0.1, 0.1" /> | ||
<input name="roughness_TT" type="vector2" value="0.05, 0.05" /> | ||
<input name="roughness_TRT" type="vector2" value="0.2, 0.2" /> | ||
<input name="cuticle_angle" type="float" value="0.5" /> | ||
<input name="absorption_coefficient" type="vector3" value="0.0, 0.0, 0.0" /> | ||
<input name="normal" type="vector3" defaultgeomprop="Nworld" /> | ||
<input name="tangent" type="vector3" defaultgeomprop="Tworld" /> | ||
<input name="curve_direction" type="vector3" defaultgeomprop="Tworld" /> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
msuzuki-nvidia
Author
Contributor
|
||
<output name="out" type="BSDF" /> | ||
</nodedef> | ||
|
||
|
@@ -430,6 +430,8 @@ | |
<nodedef name="ND_hair_absorption_from_melanin" node="hair_absorption_from_melanin" nodegroup="pbr" doc="Calculates hair absorption from melanin parameters."> | ||
<input name="melanin_concentration" type="float" value="0.25" /> | ||
<input name="melanin_redness" type="float" value="0.5" /> | ||
<input name="eumelanin_color" type="color3" value="0.657704, 0.498077, 0.254107" colorspace="lin_rec709" doc="constant from d'Eon et al. 2011, converted to color via exp(-c)" uiadvanced="true"/> | ||
<input name="pheomelanin_color" type="color3" value="0.829444, 0.67032, 0.349938" colorspace="lin_rec709" doc="constant from d'Eon et al. 2011, converted to color via exp(-c)" uiadvanced="true"/> | ||
<output name="absorption" type="vector3" /> | ||
</nodedef> | ||
|
||
|
@@ -450,6 +452,8 @@ | |
<nodedef name="ND_hair_roughness" node="hair_roughness" nodegroup="pbr" doc="Calculates hair roughness for R, TT and TRT component."> | ||
<input name="longitudinal" type="float" value="0.1" /> | ||
<input name="azimuthal" type="float" value="0.2" /> | ||
<input name="scale_TT" type="float" value="0.5" /> | ||
<input name="scale_TRT" type="float" value="2.0" /> | ||
<output name="roughness_R" type="vector2" /> | ||
<output name="roughness_TT" type="vector2" /> | ||
<output name="roughness_TRT" type="vector2" /> | ||
|
I guess we'll need to add a default geometry property to pbrlib_defs.mtlx (similar to Vworld in nprlib_defs.mtlx)
something like this?
<geompropdef name="CDworld" type="vector3" geomprop="curvedirection" space="world" />