Blender V5.0
blender::eevee::SubsurfaceData Struct Reference

#include <eevee_subsurface_shared.hh>

Public Attributes

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

Detailed Description

Definition at line 26 of file eevee_subsurface_shared.hh.

Member Data Documentation

◆ _pad1

int blender::eevee::SubsurfaceData::_pad1

Definition at line 36 of file eevee_subsurface_shared.hh.

◆ _pad2

int blender::eevee::SubsurfaceData::_pad2

Definition at line 37 of file eevee_subsurface_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 35 of file eevee_subsurface_shared.hh.

◆ sample_len

int blender::eevee::SubsurfaceData::sample_len

Number of samples precomputed in the set.

Definition at line 31 of file eevee_subsurface_shared.hh.

◆ samples

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

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

Definition at line 29 of file eevee_subsurface_shared.hh.


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