Skip to content

Commit 4c45d42

Browse files
pixelflingerplepers
authored andcommittedDec 9, 2023
fix typos in documentation
Fixes google#6294
1 parent 3ed6c19 commit 4c45d42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎docs/Filament.md.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@
20162016
\end{equation}$$
20172017

20182018
However, in practice we're using _importance sampling_ which needs to take the $pdf$ of the distribution
2019-
into account and adds a term $\frac{\left<\VoH\right>}{D(h_i, \alpha)\left<\NoH\right>}$.
2019+
into account and adds a term $\frac{4\left<\VoH\right>}{D(h_i, \alpha)\left<\NoH\right>}$.
20202020
See Importance Sampling For The IBL section:
20212021

20222022
$$\begin{equation}\label{iblImportanceSampling}
@@ -3486,15 +3486,15 @@
34863486
**do not** have the same PDF as $h_i$. The PDF of a transformed distribution is given by:
34873487

34883488
$$\begin{equation}
3489-
p(T_r(x)) = p(x) |J(T_r)|
3489+
p(T_r(x)) = p(x) |J(T_r)|^{-1}
34903490
\end{equation}$$
34913491

34923492
Where $|J(T_r)|$ is the determinant of the Jacobian of the transform. In our case we're considering
34933493
the transform from $h_i$ to $l_i$ and the determinant of its Jacobian is given in \ref{iblPDF}.
34943494

34953495
$$\begin{equation}\label{iblPDF}
3496-
p(l,v,\Theta) = D(h,\alpha) \left< \NoH \right> |J_{h \rightarrow l}| \\
3497-
|J_{h \rightarrow l}| = \frac{1}{4 \left< \VoH \right>}
3496+
p(l,v,\Theta) = D(h,\alpha) \left< \NoH \right> |J_{h \rightarrow l}|^{-1} \\
3497+
|J_{h \rightarrow l}| = 4 \left< \VoH \right>
34983498
\end{equation}$$
34993499

35003500
### Choosing important directions

0 commit comments

Comments
 (0)
Please sign in to comment.