Blender V5.3
eevee::lut::GGXBrdfClosure Struct Reference

#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

Detailed Description

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:

  • integral = F0 * scale + F90 * bias - F82_tint * metal_bias, where F82_tint = mix(F0, float3(1), pow5f(6/7) * 7 / pow6f(6/7)) * (1 - F82).

Definition at line 40 of file eevee_bxdf_lut.bsl.hh.

Member Function Documentation

◆ eval()

◆ from_coords()

GGXBrdfClosure eevee::lut::GGXBrdfClosure::from_coords ( float3 coords)
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().

Member Data Documentation

◆ roughness

float eevee::lut::GGXBrdfClosure::roughness

Definition at line 41 of file eevee_bxdf_lut.bsl.hh.

Referenced by eval(), and from_coords().

◆ V

float3 eevee::lut::GGXBrdfClosure::V

Definition at line 42 of file eevee_bxdf_lut.bsl.hh.

Referenced by eval(), and from_coords().


The documentation for this struct was generated from the following file: