Helper utility function for BSDF computations. More...
#include <bsdfutils.h>
Public Member Functions | |
LM_DISABLE_CONSTRUCT (BSDFUtils) | |
Static Public Member Functions | |
static auto | ShadingNormalCorrection (const SurfaceGeometry &geom, const Vec3 &wi, const Vec3 &wo, TransportDirection transDir) -> Float |
Compute correction factor for shading normal. More... | |
static auto | LocalReflect (const Vec3 &wi) -> Vec3 |
Compute reflection in the local coordinates. More... | |
static auto | LocalRefract (const Vec3 &wi, Float eta, Float cosThetaT) -> Vec3 |
Compute refraction in the local coordinates. More... | |
Detailed Description
Helper utility function for BSDF computations.
Member Function Documentation
Compute reflection in the local coordinates.
- Parameters
-
wi Incident direction in the local coordinates.
- Returns
- Reflected outgoing direction in the local coordinates.
|
inlinestatic |
Compute refraction in the local coordinates.
- Parameters
-
wi Incident direction in the local coordinates. eta Index of refraction. cosThetaT Inner product between surface normal and the refracted vector.
- Returns
- Refracted outgoing direction in the local coordinates.
|
inlinestatic |
Compute correction factor for shading normal.
- Parameters
-
transportDir Transport direction. geom Surface geometry. localWi wi
in local shading coordinates.localWo wo
in local shading coordinates.worldWi wi
in world coordinates.worldWo wo
in world coordinates.