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

#include <eevee_bxdf_lut_lib.bsl.hh>

Public Member Functions

float4 pack () const

Static Public Member Functions

static GGXBsdfData unpack (float4 data)
static float3 lut_coords_get (float cos_theta, float roughness, float ior)
static GGXBsdfData sample_utility_tx (const UtilityTexture &util_tx, float cos_theta, float roughness, float ior)

Public Attributes

float scale
float bias
float transmission_factor

Detailed Description

Output from the 3D GGX BSDF LUT.

The result is interpreted as:

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

Member Function Documentation

◆ lut_coords_get()

float3 eevee::lut::GGXBsdfData::lut_coords_get ( float cos_theta,
float roughness,
float ior )
inlinestatic

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

References cos_theta(), saturate, sqrt, square(), float3::x, float3::y, and float3::z.

Referenced by sample_utility_tx().

◆ pack()

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

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

References bias, scale, and transmission_factor.

◆ sample_utility_tx()

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

◆ unpack()

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

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

Referenced by sample_utility_tx().

Member Data Documentation

◆ bias

float eevee::lut::GGXBsdfData::bias

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

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

◆ scale

float eevee::lut::GGXBsdfData::scale

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

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

◆ transmission_factor

float eevee::lut::GGXBsdfData::transmission_factor

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

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


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