Blender V4.3
blender::eevee::SubsurfaceData Struct Reference

#include <eevee_shader_shared.hh>

Public Attributes

float4 samples [SSS_SAMPLE_MAX]
 
int sample_len
 
float min_radius
 
int _pad1
 
int _pad2
 

Detailed Description

Definition at line 2002 of file eevee_shader_shared.hh.

Member Data Documentation

◆ _pad1

int blender::eevee::SubsurfaceData::_pad1

Definition at line 2012 of file eevee_shader_shared.hh.

◆ _pad2

int blender::eevee::SubsurfaceData::_pad2

Definition at line 2013 of file eevee_shader_shared.hh.

◆ min_radius

float blender::eevee::SubsurfaceData::min_radius

WORKAROUND: To avoid invalid integral for components that have very small radius, we clamp the minimal radius. This add bias to the SSS effect but this is the simplest workaround I could find to ship this without visible artifact.

Definition at line 2011 of file eevee_shader_shared.hh.

◆ sample_len

int blender::eevee::SubsurfaceData::sample_len

Number of samples precomputed in the set.

Definition at line 2007 of file eevee_shader_shared.hh.

Referenced by blender::eevee::SubsurfaceModule::end_sync(), and blender::eevee::SubsurfaceModule::SubsurfaceModule().

◆ samples

float4 blender::eevee::SubsurfaceData::samples[SSS_SAMPLE_MAX]

xy: 2D sample position [-1..1], zw: sample_bounds.

Definition at line 2005 of file eevee_shader_shared.hh.


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