|
Blender V5.3
|
#include <eevee_bxdf_lut.bsl.hh>
Public Member Functions | |
| GGXBrdfData | eval (float3 Xi) const |
Static Public Member Functions | |
| static GGXBrdfClosure | from_coords (float3 coords) |
Public Attributes | |
| float | roughness |
| float3 | V |
Generate 2D GGX BRDF LUT.
Follows the split sum approximation used in [Real shading in unreal engine 4] (https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf).
The 2D LUT is parameterized on:
and the result is interpreted as:
Definition at line 40 of file eevee_bxdf_lut.bsl.hh.
|
inline |
Definition at line 58 of file eevee_bxdf_lut.bsl.hh.
References b, eevee::lut::GGXBrdfData::bias, bxdf_ggx_eval_reflection(), bxdf_ggx_sample_reflection(), BsdfSample::direction, dot(), H, L, eevee::lut::GGXBrdfData::metal_bias, N, NL, normalize, pow5f(), pow6f(), roughness, saturate, eevee::lut::GGXBrdfData::scale, V, and BsdfEval::weight.
|
inlinestatic |
Definition at line 44 of file eevee_bxdf_lut.bsl.hh.
References clamp(), roughness, sqrt, square(), V, float3::x, and float3::y.
Referenced by eevee::lut::comp_main().
| float eevee::lut::GGXBrdfClosure::roughness |
Definition at line 41 of file eevee_bxdf_lut.bsl.hh.
Referenced by eval(), and from_coords().
| float3 eevee::lut::GGXBrdfClosure::V |
Definition at line 42 of file eevee_bxdf_lut.bsl.hh.
Referenced by eval(), and from_coords().