The spica renderer
|
Trowbridge and Reitz's microfacet distribution (GGX) More...
#include <microfacet.h>
Public Member Functions | |
TrowbridgeReitzDistribution (double alphax, double alphay, bool samplevis=true) | |
double | D (const Vector3d &wh) const override |
Vector3d | sample (const Vector3d &wo, const Point2d &rands) const override |
Sample half-vector wh. | |
![]() | |
MicrofacetDistribution (double alphax, double alphay, bool sampleVisibleArea) | |
double | G1 (const Vector3d &w, const Vector3d &wh) const |
double | G (const Vector3d &wo, const Vector3d &wi, const Vector3d &wh) const |
double | pdf (const Vector3d &wo, const Vector3d &wh) const |
double | alphax () const |
double | alphay () const |
Static Public Member Functions | |
static double | roughnessToAlpha (double rough) |
Additional Inherited Members | |
![]() | |
const bool | sampleVisibleArea_ |
const double | alphax_ |
const double | alphay_ |
Trowbridge and Reitz's microfacet distribution (GGX)