Blender V5.0
blender::workbench::SceneState Struct Reference

#include <workbench_private.hh>

Public Member Functions

void init (const DRWContext *context, bool scene_updated, 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 146 of file workbench_private.hh.

Member Function Documentation

◆ init()

Member Data Documentation

◆ background_color

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

Definition at line 163 of file workbench_private.hh.

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

◆ camera

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

Definition at line 150 of file workbench_private.hh.

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

◆ camera_object

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

Definition at line 149 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 170 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 172 of file workbench_private.hh.

Referenced by init().

◆ draw_outline

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

Definition at line 168 of file workbench_private.hh.

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

◆ draw_shadows

bool blender::workbench::SceneState::draw_shadows = false

◆ 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 182 of file workbench_private.hh.

◆ material_override

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

Definition at line 180 of file workbench_private.hh.

Referenced by init().

◆ object_mode

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

Definition at line 154 of file workbench_private.hh.

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

◆ render_finished

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

Definition at line 177 of file workbench_private.hh.

Referenced by init().

◆ reset_taa_next_sample

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

Definition at line 176 of file workbench_private.hh.

Referenced by init().

◆ resolution

◆ sample

◆ samples_len

◆ scene

◆ shading

◆ view_projection_matrix

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

Definition at line 151 of file workbench_private.hh.

Referenced by init().

◆ xray_mode

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

Definition at line 158 of file workbench_private.hh.

Referenced by init().


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