Blender V5.3
ShadingData Struct Reference

#include <eevee_nodetree_lib.bsl.hh>

Public Member Functions

Reservoir< ClosureUndetermined > closure_get (const eevee::PipelineConstants &pipe, uchar i) const
ClosureUndetermined closure_get_resolved (const eevee::PipelineConstants &pipe, uchar i, float additional_weight) const

Public Attributes

float4 frag_co
packed_float3 P
packed_float3 N
packed_float3 Ni
packed_float3 Ng
packed_float3 curve_T
packed_float3 curve_B
packed_float3 curve_N
packed_float2 barycentric_coords
packed_float3 barycentric_dists
float hair_diameter
int hair_strand_id
packed_float3 point_position
float point_radius
int point_id
float ray_depth
float ray_length
uchar ray_type
bool is_strand
bool front_facing
LightAccumulation light_accum
packed_float3 emission
packed_float3 transmittance
float holdout
packed_float3 volume_scattering
float volume_anisotropy
packed_float3 volume_absorption
Thickness thickness
uint resource_id_raw
Reservoir< ClosureUndetermined > closure_bins [3]
bool closure_reflection_bin

Detailed Description

Definition at line 56 of file eevee_nodetree_lib.bsl.hh.

Member Function Documentation

◆ closure_get()

Reservoir< ClosureUndetermined > ShadingData::closure_get ( const eevee::PipelineConstants & pipe,
uchar i ) const
inline

◆ closure_get_resolved()

ClosureUndetermined ShadingData::closure_get_resolved ( const eevee::PipelineConstants & pipe,
uchar i,
float additional_weight ) const
inline

Member Data Documentation

◆ barycentric_coords

packed_float2 ShadingData::barycentric_coords

◆ barycentric_dists

packed_float3 ShadingData::barycentric_dists

◆ closure_bins

Reservoir<ClosureUndetermined> ShadingData::closure_bins[3]

◆ closure_reflection_bin

bool ShadingData::closure_reflection_bin

Definition at line 107 of file eevee_nodetree_lib.bsl.hh.

Referenced by closure_eval(), and closure_weights_reset().

◆ curve_B

packed_float3 ShadingData::curve_B

◆ curve_N

packed_float3 ShadingData::curve_N

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

Referenced by eevee::init_globals_curves(), and node_hair_info().

◆ curve_T

packed_float3 ShadingData::curve_T

Curve Tangent Space.

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

Referenced by eevee::init_globals_curves(), and node_geometry().

◆ emission

◆ frag_co

◆ front_facing

bool ShadingData::front_facing

Fragment front_facing value or true for other stages.

Definition at line 87 of file eevee_nodetree_lib.bsl.hh.

Referenced by eevee::init_globals(), node_fresnel(), and node_layer_weight().

◆ hair_diameter

float ShadingData::hair_diameter

Hair thickness in world space.

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

Referenced by eevee::init_globals(), eevee::init_globals_curves(), and node_hair_info().

◆ hair_strand_id

int ShadingData::hair_strand_id

Index of the strand for per strand effects.

Definition at line 75 of file eevee_nodetree_lib.bsl.hh.

Referenced by eevee::init_globals(), eevee::init_globals_curves(), and node_hair_info().

◆ holdout

◆ is_strand

bool ShadingData::is_strand

◆ light_accum

◆ N

◆ Ng

◆ Ni

packed_float3 ShadingData::Ni

Raw interpolated normal (non-normalized) data.

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

Referenced by eevee::init_globals(), eevee::init_globals_curves(), input_normal_displaced(), and input_normal_original().

◆ P

◆ point_id

int ShadingData::point_id

◆ point_position

packed_float3 ShadingData::point_position

Point-cloud infos.

Pointcloud infos.

Definition at line 77 of file eevee_nodetree_lib.bsl.hh.

Referenced by eevee::init_globals(), eevee::init_globals_pointcloud(), and node_point_info().

◆ point_radius

float ShadingData::point_radius

◆ ray_depth

float ShadingData::ray_depth

Ray properties (approximation).

Definition at line 81 of file eevee_nodetree_lib.bsl.hh.

Referenced by eevee::init_globals(), and node_light_path().

◆ ray_length

float ShadingData::ray_length

◆ ray_type

uchar ShadingData::ray_type

◆ resource_id_raw

◆ thickness

◆ transmittance

◆ volume_absorption

packed_float3 ShadingData::volume_absorption

◆ volume_anisotropy

float ShadingData::volume_anisotropy

◆ volume_scattering

packed_float3 ShadingData::volume_scattering

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