26 const std::array<real, 2>& alphas)
const override = 0;
36 const std::array<real, 2>& sample,
43 const std::array<real, 2>& sample,
59 const std::array<real, 2>& sample)
const;
Definition ShapeInvariantMicrofacet.h:16
General information about a ray-surface intersection event.
Definition SurfaceHit.h:59
Trowbridge-Reitz distribution (GGX). See the original paper by Trowbridge et al. Trowbridge:1975:Aver...
Definition TrowbridgeReitz.h:14
std::array< real, 2 > getAlphas(const SurfaceHit &X) const override=0
real distribution(const SurfaceHit &X, const math::Vector3R &N, const math::Vector3R &H) const override=0
Distribution of the microfacet normal. The term. Also commonly knwon as the NDF (normal distribution...
void sampleVisibleH(const SurfaceHit &X, const math::Vector3R &N, const math::Vector3R &V, const std::array< real, 2 > &sample, math::Vector3R *out_H) const override
Same as sampleH(), but tries to take geometry term into consideration. This samples only potentially ...
Definition TrowbridgeReitz.cpp:19
real lambda(const SurfaceHit &X, const math::Vector3R &N, const math::Vector3R &H, const math::Vector3R &unitDir, const std::array< real, 2 > &alphas) const override=0
The function that appears in the masking-shadowing term. For isotropic distributions,...
lta::PDF pdfSampleVisibleH(const SurfaceHit &X, const math::Vector3R &N, const math::Vector3R &H, const math::Vector3R &V) const override
Definition TrowbridgeReitz.cpp:56
void sampleH(const SurfaceHit &X, const math::Vector3R &N, const std::array< real, 2 > &sample, math::Vector3R *out_H) const override=0
Generate a microfacet normal H for the distribution. This samples all possible H vectors for the dist...
A sample from a Probability Density Function (PDF).
Definition PDF.h:14
The root for all renderer implementations.
Definition EEngineProject.h:6
EMaskingShadowing
Different types of masking and shadowing terms for microfacet distributions. Eric Heitz has published...
Definition enums.h:11