Skip to content

Commit

Permalink
Missing documentation for the exponent parameter in the generalized_s…
Browse files Browse the repository at this point in the history
…chlick_bsdf, and missing storage for the parameter (AcademySoftwareFoundation#1539)

Signed-off-by: Adrien Herubel <[email protected]>
  • Loading branch information
AdrienHerubel authored and lgritz committed Jul 24, 2022
1 parent 422c096 commit 29e8d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/shaders/stdosl.h
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ closure color conductor_bsdf(normal N, vector U, float roughness_x, float roughn
// \param roughness_y Surface roughness in the V direction with a perceptually linear response over its range.
// \param f0 Reflectivity per color channel at facing angles.
// \param f90 Reflectivity per color channel at grazing angles.
// \param exponent Variable exponent for the Schlick Fresnel curve, the default value should be 5
// \param distribution Microfacet distribution. An implementation is expected to support the following distributions: { "ggx" }
// \param thinfilm_thickness Optional float parameter for thickness of an iridescent thin film layer on top of this BSDF. Given in nanometers.
// \param thinfilm_ior Optional float parameter for refraction index of the thin film layer.
Expand Down
2 changes: 2 additions & 0 deletions src/testrender/shading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ struct MxGeneralizedSchlickParams {
float roughness_y;
Color3 f0;
Color3 f90;
float exponent;
ustring distribution;
// optional
float thinfilm_thickness;
Expand Down Expand Up @@ -292,6 +293,7 @@ register_closures(OSL::ShadingSystem* shadingsys)
CLOSURE_FLOAT_PARAM(MxGeneralizedSchlickParams, roughness_y),
CLOSURE_COLOR_PARAM(MxGeneralizedSchlickParams, f0),
CLOSURE_COLOR_PARAM(MxGeneralizedSchlickParams, f90),
CLOSURE_COLOR_PARAM(MxGeneralizedSchlickParams, exponent),
CLOSURE_STRING_PARAM(MxGeneralizedSchlickParams, distribution),
CLOSURE_FLOAT_KEYPARAM(MxGeneralizedSchlickParams, thinfilm_thickness, "thinfilm_thickness"),
CLOSURE_FLOAT_KEYPARAM(MxGeneralizedSchlickParams, thinfilm_ior, "thinfilm_ior"),
Expand Down

0 comments on commit 29e8d0b

Please sign in to comment.