Skip to content

Commit

Permalink
Test PR locally
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Sep 16, 2024
1 parent d377d0e commit 2598b6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libraries/pbrlib/genosl/mx_anisotropic_vdf.osl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
void mx_anisotropic_vdf(vector absorption, vector scattering, float anisotropy, output VDF vdf)
void mx_anisotropic_vdf(color absorption, color scattering, float anisotropy, output VDF vdf)
{
// TODO: Need to remap parameters to match the new closure,
// or change the MaterialX spec to OSL parameterization.
vdf = 0;
// Convert from absorption and scattering coefficients to
// extinction coefficient and single-scattering albedo.
color extinction = absorption + scattering;
color albedo = scattering / extinction;
vdf = anisotropic_vdf(albedo, extinction, anisotropy);
}

0 comments on commit 2598b6e

Please sign in to comment.