Blender V5.0
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
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
bool32_t use_specular
float xray_alpha
int _pad1
float4 background_color

Detailed Description

Definition at line 19 of file workbench_shader_shared.hh.

Member Data Documentation

◆ _pad0

float WorldData::_pad0

Definition at line 45 of file workbench_shader_shared.hh.

◆ _pad1

int WorldData::_pad1

Definition at line 50 of file workbench_shader_shared.hh.

◆ ambient_color

float4 WorldData::ambient_color

Definition at line 30 of file workbench_shader_shared.hh.

◆ background_color

float4 WorldData::background_color

Definition at line 52 of file workbench_shader_shared.hh.

◆ cavity_attenuation

float WorldData::cavity_attenuation

Definition at line 39 of file workbench_shader_shared.hh.

◆ cavity_distance

float WorldData::cavity_distance

Definition at line 40 of file workbench_shader_shared.hh.

◆ cavity_jitter_scale

float WorldData::cavity_jitter_scale

Definition at line 35 of file workbench_shader_shared.hh.

◆ cavity_ridge_factor

float WorldData::cavity_ridge_factor

Definition at line 38 of file workbench_shader_shared.hh.

◆ cavity_sample_count_inv

float WorldData::cavity_sample_count_inv

Definition at line 34 of file workbench_shader_shared.hh.

◆ cavity_sample_end

int WorldData::cavity_sample_end

Definition at line 33 of file workbench_shader_shared.hh.

◆ cavity_sample_start

int WorldData::cavity_sample_start

Definition at line 32 of file workbench_shader_shared.hh.

◆ cavity_valley_factor

float WorldData::cavity_valley_factor

Definition at line 37 of file workbench_shader_shared.hh.

◆ curvature_ridge

float WorldData::curvature_ridge

Definition at line 42 of file workbench_shader_shared.hh.

◆ curvature_valley

float WorldData::curvature_valley

Definition at line 43 of file workbench_shader_shared.hh.

◆ lights

LightData WorldData::lights[4]

Definition at line 29 of file workbench_shader_shared.hh.

◆ matcap_orientation

int WorldData::matcap_orientation

Definition at line 47 of file workbench_shader_shared.hh.

◆ object_outline_color

float4 WorldData::object_outline_color

Definition at line 22 of file workbench_shader_shared.hh.

◆ shadow_add

float WorldData::shadow_add

Definition at line 27 of file workbench_shader_shared.hh.

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

◆ shadow_direction_vs

float4 WorldData::shadow_direction_vs

Definition at line 23 of file workbench_shader_shared.hh.

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

◆ shadow_focus

float WorldData::shadow_focus

Definition at line 24 of file workbench_shader_shared.hh.

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

◆ shadow_mul

float WorldData::shadow_mul

Definition at line 26 of file workbench_shader_shared.hh.

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

◆ shadow_shift

float WorldData::shadow_shift

Definition at line 25 of file workbench_shader_shared.hh.

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

◆ ui_scale

float WorldData::ui_scale

Definition at line 44 of file workbench_shader_shared.hh.

◆ use_specular

bool32_t WorldData::use_specular

Definition at line 48 of file workbench_shader_shared.hh.

◆ viewport_size

float2 WorldData::viewport_size

Definition at line 20 of file workbench_shader_shared.hh.

◆ viewport_size_inv

float2 WorldData::viewport_size_inv

Definition at line 21 of file workbench_shader_shared.hh.

◆ xray_alpha

float WorldData::xray_alpha

Definition at line 49 of file workbench_shader_shared.hh.


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