Skip to content

Commit 5e0fe74

Browse files
committed
Update 2025-05-06-Microfacet-Theory.md
1 parent e6ba615 commit 5e0fe74

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

_posts/2025-05-06-Microfacet-Theory.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,28 @@ If the microsurface is a heightfield, which is typically the case for microsurfa
7272

7373
$$ G_2(l, v, m) = \lambda(\phi)G_1(v, m)G_1(l, m) + (1 - \lambda(\phi))\min(G_1(v, m), G_1(l, m)) \tag{9.28}$$
7474

75-
where $\lambda(\psi)$ is some function that increases from 0 to 1 as the angle $\psi$ increases. Ashikhmin et al. suggested a Gaussian with a standard deviation of $15^\circ$(? 0.26 radians):
75+
where $\lambda(\psi)$ is some function that increases from 0 to 1 as the angle $\psi$ increases. Ashikhmin et al. suggested a Gaussian with a standard deviation of $15^\circ$( 0.26 radians):
7676

7777
$$\lambda(\psi)=1-e^{-7.3\psi^2} \tag{9.29}$$
7878

7979
A different $\lambda$ function was proposed by van Ginneken et al.:
8080

8181
$$\lambda(\psi)=\frac{4.41\psi}{4.41\psi+1} \tag{9.30}$$
8282

83+
Regardless of the relative alignment of the light and view directions, there is another reason that masking and shadowing at a given surface point are correlated. Both are related to the point's height relative to the rest of the surface. The probability of masking increases for lower points, and so does the probability of shadowing. If the Smith masking function is used, this correlation can be precisely accounted for by the *Smith height-correlated masking-shadowing function*:
84+
85+
$$G_2(l,v,m)=\frac{\chi^+(m \cdot v)\chi^+(m \cdot l)}{1+\Lambda(v)+\Lambda(l)} \tag{9.31}$$
86+
87+
Heitz also describes a form of Smith $G_2$ that combines direction and height correlation:
88+
89+
$$G_2(l,v,m)=\frac{\chi^+(m \cdot v)\chi^+(m \cdot l)}{1+\max(\Lambda(v),\Lambda(l))+\lambda(v,l)\min(\Lambda(v),\Lambda(l))} \tag{9.32}$$
90+
91+
where the function $\lambda(v, l)$ could be an empirical function such as the ones in Equations 9.29 and 9.30, or one derived specifically for a given NDF.
92+
93+
Out of these alternatives, Heitz recommends the height-correlated form of the Smith function (Equation 9.31) since it has a similar cost to the uncorrelated form and better accuracy. This form is the most widely used in practice , though some practitioners use the separable form (Equation 9.27) .
94+
95+
The general microfacet BRDF (Equation 9.26) is not used directly for rendering. It is used to derive a closed-form solution (exact or approximate) given a specific choice of micro-BRDF $f_\mu$. The first example of this type of derivation will be shown in the next section
96+
8397
<!--
8498
regex:\[\d+(?:,\s*\d+)*\]
8599
## Lists

0 commit comments

Comments
 (0)