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

#include <eevee_bxdf_lut.bsl.hh>

Public Member Functions

GGXBtdfGt1Data eval (float3 Xi) const

Static Public Member Functions

static GGXBtdfGt1Closure from_coords (float3 coords)

Public Attributes

float roughness
float ior
float3 V

Detailed Description

Generate 3D GGX BTDF LUT, for IOR > 1.

Using Schlick's approximation; only the transmittance is needed because scale and bias do not depend on the IOR, and can be obtained independently from the BRDF LUT.

The 3D LUT is parameterized on:

and output is interpreted as:

  • transmittance = (1 - F0) * transmission_factor.

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

Member Function Documentation

◆ eval()

GGXBtdfGt1Data eevee::lut::GGXBtdfGt1Closure::eval ( float3 Xi) const
inline

◆ from_coords()

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

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

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

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

Member Data Documentation

◆ ior

float eevee::lut::GGXBtdfGt1Closure::ior

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

Referenced by eval(), and from_coords().

◆ roughness

float eevee::lut::GGXBtdfGt1Closure::roughness

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

Referenced by eval(), and from_coords().

◆ V

float3 eevee::lut::GGXBtdfGt1Closure::V

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

Referenced by eval(), and from_coords().


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