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

#include <eevee_bxdf_lut_lib.bsl.hh>

Public Member Functions

float4 pack () const

Static Public Member Functions

static GGXBrdfData unpack (float4 data)
static float2 lut_coords_get (float cos_theta, float roughness)
static GGXBrdfData sample_utility_tx (const UtilityTexture &util_tx, float cos_theta, float roughness)

Public Attributes

float scale
float bias
float metal_bias

Detailed Description

Output from the 2D GGX BRDF LUT.

The result is interpreted as:

Definition at line 26 of file eevee_bxdf_lut_lib.bsl.hh.

Member Function Documentation

◆ lut_coords_get()

float2 eevee::lut::GGXBrdfData::lut_coords_get ( float cos_theta,
float roughness )
inlinestatic

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

References cos_theta(), saturate, and sqrt.

Referenced by sample_utility_tx().

◆ pack()

float4 eevee::lut::GGXBrdfData::pack ( ) const
inline

Definition at line 31 of file eevee_bxdf_lut_lib.bsl.hh.

References bias, metal_bias, and scale.

◆ sample_utility_tx()

GGXBrdfData eevee::lut::GGXBrdfData::sample_utility_tx ( const UtilityTexture & util_tx,
float cos_theta,
float roughness )
inlinestatic

◆ unpack()

GGXBrdfData eevee::lut::GGXBrdfData::unpack ( float4 data)
inlinestatic

Definition at line 36 of file eevee_bxdf_lut_lib.bsl.hh.

Referenced by sample_utility_tx().

Member Data Documentation

◆ bias

float eevee::lut::GGXBrdfData::bias

Definition at line 28 of file eevee_bxdf_lut_lib.bsl.hh.

Referenced by eevee::lut::GGXBrdfClosure::eval(), and pack().

◆ metal_bias

float eevee::lut::GGXBrdfData::metal_bias

◆ scale

float eevee::lut::GGXBrdfData::scale

Definition at line 27 of file eevee_bxdf_lut_lib.bsl.hh.

Referenced by eevee::lut::GGXBrdfClosure::eval(), and pack().


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