Blender V4.3
WorldData Struct Reference

#include <workbench_shader_shared.h>

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
 
LightData 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
 
bool use_specular
 
float xray_alpha
 
int _pad1
 
float4 background_color
 

Detailed Description

Definition at line 17 of file workbench_shader_shared.h.

Member Data Documentation

◆ _pad0

float WorldData::_pad0

Definition at line 43 of file workbench_shader_shared.h.

◆ _pad1

int WorldData::_pad1

Definition at line 48 of file workbench_shader_shared.h.

◆ ambient_color

float4 WorldData::ambient_color

Definition at line 28 of file workbench_shader_shared.h.

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

◆ background_color

float4 WorldData::background_color

Definition at line 50 of file workbench_shader_shared.h.

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

◆ cavity_attenuation

float WorldData::cavity_attenuation

Definition at line 37 of file workbench_shader_shared.h.

◆ cavity_distance

float WorldData::cavity_distance

Definition at line 38 of file workbench_shader_shared.h.

◆ cavity_jitter_scale

float WorldData::cavity_jitter_scale

Definition at line 33 of file workbench_shader_shared.h.

◆ cavity_ridge_factor

float WorldData::cavity_ridge_factor

Definition at line 36 of file workbench_shader_shared.h.

◆ cavity_sample_count_inv

float WorldData::cavity_sample_count_inv

Definition at line 32 of file workbench_shader_shared.h.

◆ cavity_sample_end

int WorldData::cavity_sample_end

Definition at line 31 of file workbench_shader_shared.h.

◆ cavity_sample_start

int WorldData::cavity_sample_start

Definition at line 30 of file workbench_shader_shared.h.

◆ cavity_valley_factor

float WorldData::cavity_valley_factor

Definition at line 35 of file workbench_shader_shared.h.

◆ curvature_ridge

float WorldData::curvature_ridge

Definition at line 40 of file workbench_shader_shared.h.

◆ curvature_valley

float WorldData::curvature_valley

Definition at line 41 of file workbench_shader_shared.h.

◆ lights

LightData WorldData::lights[4]

Definition at line 27 of file workbench_shader_shared.h.

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

◆ matcap_orientation

int WorldData::matcap_orientation

Definition at line 45 of file workbench_shader_shared.h.

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

◆ object_outline_color

float4 WorldData::object_outline_color

Definition at line 20 of file workbench_shader_shared.h.

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

◆ shadow_add

float WorldData::shadow_add

Definition at line 25 of file workbench_shader_shared.h.

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

◆ shadow_direction_vs

float4 WorldData::shadow_direction_vs

Definition at line 21 of file workbench_shader_shared.h.

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

◆ shadow_focus

float WorldData::shadow_focus

Definition at line 22 of file workbench_shader_shared.h.

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

◆ shadow_mul

float WorldData::shadow_mul

Definition at line 24 of file workbench_shader_shared.h.

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

◆ shadow_shift

float WorldData::shadow_shift

Definition at line 23 of file workbench_shader_shared.h.

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

◆ ui_scale

float WorldData::ui_scale

Definition at line 42 of file workbench_shader_shared.h.

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

◆ use_specular

bool WorldData::use_specular

Definition at line 46 of file workbench_shader_shared.h.

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

◆ viewport_size

float2 WorldData::viewport_size

Definition at line 18 of file workbench_shader_shared.h.

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

◆ viewport_size_inv

float2 WorldData::viewport_size_inv

Definition at line 19 of file workbench_shader_shared.h.

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

◆ xray_alpha

float WorldData::xray_alpha

Definition at line 47 of file workbench_shader_shared.h.

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


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