Skip to content

Commit 0d122e7

Browse files
authored
docs: Fixes to documentation of new oren_nayar_diffuse_bsdf parameters (#1820)
Fixes to documentation of new oren_nayar_diffuse_bsdf parameters * The new parameter was explained, but not added to the function prototype in the docs. * The semi-deprecated languagespec.tex was fixed, but it slipped our minds that we've shifted the docs to markdown for ReadTheDocs (the real place we should have changed was stdlib.md). Signed-off-by: Larry Gritz <[email protected]>
1 parent 9e3d7e4 commit 0d122e7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/doc/languagespec.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
6868
}
6969
\date{{\large Date: 27 Oct 2023 \\
70-
% (with corrections, 24 Nov 2021)
70+
(with corrections, 24 May 2024)
7171
}
7272
\bigskip
7373
\bigskip
@@ -4640,7 +4640,7 @@ \section{Material Closures}
46404640

46414641
\subsection{Surface BSDF closures}
46424642

4643-
\apiitem{\closurecolor\ {\ce oren_nayar_diffuse_bsdf}(normal N, color albedo, float roughness)}
4643+
\apiitem{\closurecolor\ {\ce oren_nayar_diffuse_bsdf}(normal N, color albedo, float roughness, int energy_compensation=0)}
46444644
\indexapi{oren_nayar_diffuse_bsdf()}
46454645

46464646
Constructs a diffuse reflection BSDF based on the Oren-Nayar reflectance

src/doc/stdlib.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ properties of the physically-based shading nodes of MaterialX v1.38
12671267

12681268
### Surface BSDF closures
12691269

1270-
`closure color` **`oren_nayar_diffuse_bsdf`** `(normal N, color albedo, float roughness)`
1270+
`closure color` **`oren_nayar_diffuse_bsdf`** `(normal N, color albedo, float roughness, int energy_compensation=0)`
12711271

12721272
: Constructs a diffuse reflection BSDF based on the Oren-Nayar reflectance
12731273
model.
@@ -1283,10 +1283,14 @@ properties of the physically-based shading nodes of MaterialX v1.38
12831283
`roughness`
12841284
: Surface roughness [0,1]. A value of 0.0 gives Lambertian reflectance.
12851285

1286+
`energy_compensation`
1287+
: Optional int parameter to select if energy compensation should be applied.
1288+
12861289
The Oren-Nayar reflection model is described in M. Oren and S. K.
12871290
Nayar, "Generalization of Lambert's Reflectance Model," Proceedings of
12881291
SIGGRAPH 1994, pp.239-246 (July, 1994).
12891292

1293+
The energy compensated model is described in the white paper: "An energy-preserving Qualitative Oren-Nayar model" by Jamie Portsmouth.
12901294

12911295
`closure color` **`burley_diffuse_bsdf`** `(normal N, color albedo, float roughness)`
12921296

0 commit comments

Comments
 (0)