Blender V5.3
eevee::lut Namespace Reference

Classes

struct  GGXBrdfClosure
struct  GGXBrdfData
struct  GGXBsdfClosure
struct  GGXBsdfData
struct  GGXBtdfGt1Closure
struct  GGXBtdfGt1Data
struct  LUT

Functions

LUT models
float4 burley_sss_translucency (float3 coords)
float4 random_walk_sss_translucency (float3 coords)
LUT computation, integration
template<typename F>
float4 integrate (const F &func)
template float4 integrate< GGXBrdfClosure > (const GGXBrdfClosure &)
template float4 integrate< GGXBsdfClosure > (const GGXBsdfClosure &)
template float4 integrate< GGXBtdfGt1Closure > (const GGXBtdfGt1Closure &)
void comp_main (const uint3 global_id, LUT &lut)

Variables

PipelineCompute comp (comp_main)

Detailed Description

Pipelines to generate Look Up Tables for BxDFs. Not used in the default configuration as the tables are stored in the blender executable. This is used for reference or to update them.

Wrapper objects for data from Look Up Tables for BxDFs. Refer to eevee_bxdf_lut.bsl.hh for table computation.

Function Documentation

◆ burley_sss_translucency()

float4 eevee::lut::burley_sss_translucency ( float3 coords)

Generate Christensen-Burley translucency profile.

Generally follows: [Extending the Disney BRDF to a BSDF with Integrated Subsurface Scattering] (https://blog.selfshadow.com/publications/s2015-shading-course/burley/s2015_pbs_disney_bsdf_notes.pdf) with empirical fitting to match cycles. Precomputes exit radiance for a slab of homogeneous material, back-lit by a directional light. We only care about a single color primary, as the profile is applied to each primary independently. The other components are for debugging.

Parameters: x = distance, while output is interpreted as exit radiance.

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

References burley_sss_translucency(), exp, mix, pow, pow5f(), saturate, square(), and float3::x.

Referenced by burley_sss_translucency(), and comp_main().

◆ comp_main()

◆ integrate()

template<typename F>
float4 eevee::lut::integrate ( const F & func)

◆ integrate< GGXBrdfClosure >()

◆ integrate< GGXBsdfClosure >()

◆ integrate< GGXBtdfGt1Closure >()

◆ random_walk_sss_translucency()

float4 eevee::lut::random_walk_sss_translucency ( float3 coords)

Variable Documentation

◆ comp

PipelineCompute eevee::lut::comp(comp_main) ( comp_main )