Skip to content

Commit

Permalink
Initial OSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Nov 2, 2024
1 parent 7279a49 commit 6c44937
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions libraries/pbrlib/genosl/mx_chiang_hair_roughness.osl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
void mx_chiang_hair_roughness(float longitudinal, float azimuthal, float scale_TT, float scale_TRT, output vector2 roughness_R, output vector2 roughness_TT, output vector2 roughness_TRT)
{
// TODO: Write OSL implementation
roughness_R = vector2(0.0, 0.0);
roughness_TT = vector2(0.0, 0.0);
roughness_TRT = vector2(0.0, 0.0);
}
6 changes: 3 additions & 3 deletions libraries/pbrlib/genosl/pbrlib_genosl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@
<implementation name="IM_blackbody_genosl" nodedef="ND_blackbody" file="mx_blackbody.osl" function="mx_blackbody" target="genosl" />

<!-- <deon_hair_absorption_from_melanin> -->
<implementation name="IM_deon_hair_absorption_from_melanin_genosl" nodedef="ND_deon_hair_absorption_from_melanin" sourcecode="TBD" function="mx_deon_hair_absorption_from_melanin" target="genosl" />
<implementation name="IM_deon_hair_absorption_from_melanin_genosl" nodedef="ND_deon_hair_absorption_from_melanin" sourcecode="vector(1.0)" function="mx_deon_hair_absorption_from_melanin" target="genosl" />

<!-- <chiang_hair_absorption_from_color> -->
<implementation name="IM_chiang_hair_absorption_from_color_genosl" nodedef="ND_chiang_hair_absorption_from_color" sourcecode="TBD" target="genosl" />
<implementation name="IM_chiang_hair_absorption_from_color_genosl" nodedef="ND_chiang_hair_absorption_from_color" sourcecode="vector(1.0)" target="genosl" />

<!-- <chiang_hair_roughness> -->
<implementation name="IM_chiang_hair_roughness_genosl" nodedef="ND_chiang_hair_roughness" sourcecode="TBD" target="genosl" />
<implementation name="IM_chiang_hair_roughness_genosl" nodedef="ND_chiang_hair_roughness" file="mx_chiang_hair_roughness.osl" function="mx_chiang_hair_roughness" target="genosl" />

</materialx>

0 comments on commit 6c44937

Please sign in to comment.