26 const std::array<real, 2>& alphas)
const override;
36 const std::array<real, 2>& sample,
45 return {m_alpha, m_alpha};
Isotropic Beckmann distribution. See the paper "Microfacet Models for Refraction through Rough Surfac...
Definition IsoBeckmann.h:13
real distribution(const SurfaceHit &X, const math::Vector3R &N, const math::Vector3R &H) const override
Distribution of the microfacet normal. The term. Also commonly knwon as the NDF (normal distribution...
Definition IsoBeckmann.cpp:47
std::array< real, 2 > getAlphas(const SurfaceHit &X) const override
Definition IsoBeckmann.h:43
IsoBeckmann(real alpha, EMaskingShadowing maskingShadowingType)
Definition IsoBeckmann.cpp:14
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
The function that appears in the masking-shadowing term. For isotropic distributions,...
Definition IsoBeckmann.cpp:24
void sampleH(const SurfaceHit &X, const math::Vector3R &N, const std::array< real, 2 > &sample, math::Vector3R *out_H) const override
Generate a microfacet normal H for the distribution. This samples all possible H vectors for the dist...
Definition IsoBeckmann.cpp:67
Definition ShapeInvariantMicrofacet.h:16
General information about a ray-surface intersection event.
Definition SurfaceHit.h:59
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