Blender V4.5
blender::eevee::DepthOfFieldData Struct Reference

#include <eevee_shader_shared.hh>

Inherited by blender::draw::UniformBuffer< DepthOfFieldData >.

Public Attributes

int2 extent
 
float2 texel_size
 
float2 bokeh_anisotropic_scale
 
float2 bokeh_anisotropic_scale_inv
 
float2 gather_uv_fac
 
float scatter_coc_threshold
 
float scatter_color_threshold
 
float scatter_neighbor_max_color
 
int scatter_sprite_per_row
 
float bokeh_blades
 
float bokeh_rotation
 
float coc_mul
 
float coc_bias
 
float coc_abs_max
 
eCameraType camera_type
 
float4 filter_samples_weight
 
float filter_center_weight
 
uint scatter_max_rect
 
int _pad0
 
int _pad1
 

Detailed Description

Definition at line 714 of file eevee_shader_shared.hh.

Member Data Documentation

◆ _pad0

int blender::eevee::DepthOfFieldData::_pad0

Definition at line 745 of file eevee_shader_shared.hh.

◆ _pad1

int blender::eevee::DepthOfFieldData::_pad1

Definition at line 745 of file eevee_shader_shared.hh.

◆ bokeh_anisotropic_scale

float2 blender::eevee::DepthOfFieldData::bokeh_anisotropic_scale

Scale factor for anisotropic bokeh.

Definition at line 720 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::jitter_apply(), and blender::eevee::DepthOfField::sync().

◆ bokeh_anisotropic_scale_inv

float2 blender::eevee::DepthOfFieldData::bokeh_anisotropic_scale_inv

Definition at line 721 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::sync().

◆ bokeh_blades

float blender::eevee::DepthOfFieldData::bokeh_blades

Number of side the bokeh shape has.

Definition at line 730 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::init(), and blender::eevee::DepthOfField::jitter_apply().

◆ bokeh_rotation

float blender::eevee::DepthOfFieldData::bokeh_rotation

Rotation of the bokeh shape.

Definition at line 732 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::jitter_apply(), and blender::eevee::DepthOfField::sync().

◆ camera_type

eCameraType blender::eevee::DepthOfFieldData::camera_type

Copy of camera type.

Definition at line 738 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::render().

◆ coc_abs_max

float blender::eevee::DepthOfFieldData::coc_abs_max

Maximum absolute allowed Circle of confusion (CoC). Min of computed max and user max.

Definition at line 736 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::render().

◆ coc_bias

float blender::eevee::DepthOfFieldData::coc_bias

Definition at line 734 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::render().

◆ coc_mul

float blender::eevee::DepthOfFieldData::coc_mul

Multiplier and bias to apply to linear depth to Circle of confusion (CoC).

Definition at line 734 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::render().

◆ extent

int2 blender::eevee::DepthOfFieldData::extent

Size of the render targets for gather & scatter passes.

Definition at line 716 of file eevee_shader_shared.hh.

◆ filter_center_weight

float blender::eevee::DepthOfFieldData::filter_center_weight

Definition at line 741 of file eevee_shader_shared.hh.

◆ filter_samples_weight

float4 blender::eevee::DepthOfFieldData::filter_samples_weight

Weights of spatial filtering in stabilize pass. Not array to avoid alignment restriction.

Definition at line 740 of file eevee_shader_shared.hh.

◆ gather_uv_fac

float2 blender::eevee::DepthOfFieldData::gather_uv_fac

Definition at line 723 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::sync().

◆ scatter_coc_threshold

float blender::eevee::DepthOfFieldData::scatter_coc_threshold

Scatter parameters.

Definition at line 725 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::render().

◆ scatter_color_threshold

float blender::eevee::DepthOfFieldData::scatter_color_threshold

Definition at line 726 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::init().

◆ scatter_max_rect

uint blender::eevee::DepthOfFieldData::scatter_max_rect

Max number of sprite in the scatter pass for each ground.

Definition at line 743 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::sync().

◆ scatter_neighbor_max_color

float blender::eevee::DepthOfFieldData::scatter_neighbor_max_color

Definition at line 727 of file eevee_shader_shared.hh.

Referenced by blender::eevee::DepthOfField::init().

◆ scatter_sprite_per_row

int blender::eevee::DepthOfFieldData::scatter_sprite_per_row

Definition at line 728 of file eevee_shader_shared.hh.

◆ texel_size

float2 blender::eevee::DepthOfFieldData::texel_size

Size of a pixel in uv space (1.0 / extent).

Definition at line 718 of file eevee_shader_shared.hh.


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