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

#include <eevee_bxdf_lut.bsl.hh>

Public Member Functions

GGXBsdfData eval (float3 Xi) const

Static Public Member Functions

static GGXBsdfClosure from_coords (float3 coords)

Public Attributes

float roughness
float ior
float3 V

Detailed Description

Generate 3D GGX BSDF LUT.

Follows the split sum approximation used in [Real shading in unreal engine 4] (https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf). and uses Schlick's approximation to weight R, T components.

The 3D LUT is parameterized on:

and output is interpreted as:

  • reflectance = F0 * scale + F90 * bias,
  • transmittance = (1 - F0) * transmission_factor.

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

Member Function Documentation

◆ eval()

◆ from_coords()

GGXBsdfClosure eevee::lut::GGXBsdfClosure::from_coords ( float3 coords)
inlinestatic

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

References clamp(), ior, roughness, saturate, sqrt, square(), V, float3::x, float3::y, and float3::z.

Referenced by eevee::lut::comp_main().

Member Data Documentation

◆ ior

float eevee::lut::GGXBsdfClosure::ior

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

Referenced by eval(), and from_coords().

◆ roughness

float eevee::lut::GGXBsdfClosure::roughness

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

Referenced by eval(), and from_coords().

◆ V

float3 eevee::lut::GGXBsdfClosure::V

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

Referenced by eval(), and from_coords().


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