Blender V4.3
blender::workbench::SceneState Struct Reference

#include <workbench_private.hh>

Public Member Functions

void init (Object *camera_ob=nullptr)
 

Public Attributes

Scenescene = nullptr
 
Objectcamera_object = nullptr
 
Cameracamera = nullptr
 
float4x4 view_projection_matrix = float4x4::identity()
 
int2 resolution = int2(0)
 
eContextObjectMode object_mode = CTX_MODE_OBJECT
 
View3DShading shading = {}
 
eLightingType lighting_type = eLightingType::STUDIO
 
bool xray_mode = false
 
DRWState cull_state = DRW_STATE_NO_DRAW
 
Vector< float4clip_planes
 
float4 background_color = float4(0)
 
bool draw_cavity = false
 
bool draw_curvature = false
 
bool draw_shadows = false
 
bool draw_outline = false
 
bool draw_dof = false
 
bool draw_aa = false
 
bool draw_object_id = false
 
int sample = 0
 
int samples_len = 0
 
bool reset_taa_next_sample = false
 
bool render_finished = false
 
Material material_override = Material(float3(1.0f))
 
Material material_attribute_color = Material(float3(-1.0f))
 

Detailed Description

Definition at line 142 of file workbench_private.hh.

Member Function Documentation

◆ init()

void blender::workbench::SceneState::init ( Object * camera_ob = nullptr)

Member Data Documentation

◆ background_color

float4 blender::workbench::SceneState::background_color = float4(0)

◆ camera

Camera* blender::workbench::SceneState::camera = nullptr

Definition at line 146 of file workbench_private.hh.

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

◆ camera_object

Object* blender::workbench::SceneState::camera_object = nullptr

Definition at line 145 of file workbench_private.hh.

Referenced by blender::workbench::DofPass::init(), and init().

◆ clip_planes

◆ cull_state

◆ draw_aa

bool blender::workbench::SceneState::draw_aa = false

Definition at line 166 of file workbench_private.hh.

Referenced by blender::workbench::AntiAliasingPass::init(), and init().

◆ draw_cavity

bool blender::workbench::SceneState::draw_cavity = false

◆ draw_curvature

bool blender::workbench::SceneState::draw_curvature = false

◆ draw_dof

bool blender::workbench::SceneState::draw_dof = false

◆ draw_object_id

bool blender::workbench::SceneState::draw_object_id = false

Definition at line 168 of file workbench_private.hh.

Referenced by blender::workbench::Instance::draw(), and init().

◆ draw_outline

bool blender::workbench::SceneState::draw_outline = false

Definition at line 164 of file workbench_private.hh.

Referenced by blender::workbench::OutlinePass::init(), and init().

◆ draw_shadows

◆ lighting_type

eLightingType blender::workbench::SceneState::lighting_type = eLightingType::STUDIO

◆ material_attribute_color

Material blender::workbench::SceneState::material_attribute_color = Material(float3(-1.0f))

Definition at line 178 of file workbench_private.hh.

Referenced by blender::workbench::Instance::get_material().

◆ material_override

Material blender::workbench::SceneState::material_override = Material(float3(1.0f))

Definition at line 176 of file workbench_private.hh.

Referenced by blender::workbench::Instance::get_material(), and init().

◆ object_mode

eContextObjectMode blender::workbench::SceneState::object_mode = CTX_MODE_OBJECT

Definition at line 150 of file workbench_private.hh.

Referenced by init(), and blender::workbench::ObjectState::ObjectState().

◆ render_finished

bool blender::workbench::SceneState::render_finished = false

◆ reset_taa_next_sample

bool blender::workbench::SceneState::reset_taa_next_sample = false

Definition at line 172 of file workbench_private.hh.

Referenced by init(), and workbench_view_update().

◆ resolution

◆ sample

◆ samples_len

◆ scene

◆ shading

◆ view_projection_matrix

float4x4 blender::workbench::SceneState::view_projection_matrix = float4x4::identity()

Definition at line 147 of file workbench_private.hh.

Referenced by init().

◆ xray_mode

bool blender::workbench::SceneState::xray_mode = false

Definition at line 154 of file workbench_private.hh.

Referenced by blender::workbench::Instance::draw_to_mesh_pass(), and init().


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