Blender V5.3
WorldData Struct Reference

#include <workbench_shader_shared.hh>

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

Public Attributes

float2 viewport_size
float2 viewport_size_inv
float4 object_outline_color
float4 shadow_direction_vs
float shadow_focus
float shadow_shift
float shadow_mul
float shadow_add
struct SolidLightData lights [4]
float4 ambient_color
int cavity_sample_start
int cavity_sample_end
float cavity_sample_count_inv
float cavity_jitter_scale
float cavity_valley_factor
float cavity_ridge_factor
float cavity_attenuation
float cavity_distance
float curvature_ridge
float curvature_valley
float ui_scale
float _pad0
int matcap_orientation
bool32_t use_specular
bool32_t xray_mode
float xray_alpha
float4 background_color

Detailed Description

Definition at line 21 of file workbench_shader_shared.hh.

Member Data Documentation

◆ _pad0

float WorldData::_pad0

Definition at line 47 of file workbench_shader_shared.hh.

◆ ambient_color

float4 WorldData::ambient_color

◆ background_color

float4 WorldData::background_color

Definition at line 54 of file workbench_shader_shared.hh.

Referenced by blender::workbench::SceneResources::init().

◆ cavity_attenuation

float WorldData::cavity_attenuation

Definition at line 41 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_distance

float WorldData::cavity_distance

Definition at line 42 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_jitter_scale

float WorldData::cavity_jitter_scale

Definition at line 37 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_ridge_factor

float WorldData::cavity_ridge_factor

Definition at line 40 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_sample_count_inv

float WorldData::cavity_sample_count_inv

Definition at line 36 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_sample_end

int WorldData::cavity_sample_end

Definition at line 35 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_sample_start

int WorldData::cavity_sample_start

Definition at line 34 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ cavity_valley_factor

float WorldData::cavity_valley_factor

Definition at line 39 of file workbench_shader_shared.hh.

Referenced by workbench::cavity_compute().

◆ curvature_ridge

float WorldData::curvature_ridge

Definition at line 44 of file workbench_shader_shared.hh.

Referenced by workbench::curvature_compute().

◆ curvature_valley

float WorldData::curvature_valley

Definition at line 45 of file workbench_shader_shared.hh.

Referenced by workbench::curvature_compute().

◆ lights

struct SolidLightData WorldData::lights[4]

◆ matcap_orientation

◆ object_outline_color

float4 WorldData::object_outline_color

Definition at line 24 of file workbench_shader_shared.hh.

Referenced by blender::workbench::SceneResources::init().

◆ shadow_add

float WorldData::shadow_add

◆ shadow_direction_vs

float4 WorldData::shadow_direction_vs

◆ shadow_focus

float WorldData::shadow_focus

◆ shadow_mul

float WorldData::shadow_mul

◆ shadow_shift

float WorldData::shadow_shift

◆ ui_scale

float WorldData::ui_scale

◆ use_specular

◆ viewport_size

float2 WorldData::viewport_size

◆ viewport_size_inv

float2 WorldData::viewport_size_inv

◆ xray_alpha

float WorldData::xray_alpha

Definition at line 52 of file workbench_shader_shared.hh.

Referenced by blender::workbench::SceneResources::init().

◆ xray_mode

bool32_t WorldData::xray_mode

Definition at line 51 of file workbench_shader_shared.hh.

Referenced by blender::workbench::SceneResources::init().


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