|
Blender V4.3
|
#include <workbench_private.hh>
Public Member Functions | |
| void | init (Object *camera_ob=nullptr) |
Public Attributes | |
| Scene * | scene = nullptr |
| Object * | camera_object = nullptr |
| Camera * | camera = 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< float4 > | clip_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)) |
Definition at line 142 of file workbench_private.hh.
| void blender::workbench::SceneState::init | ( | Object * | camera_ob = nullptr | ) |
Definition at line 24 of file workbench_state.cc.
References blender::assign_if_different(), background_color, CAM_DOF_ENABLED, View3D::camera, camera_object, RegionView3D::clip, clip_planes, CTX_data_mode_enum_ex(), cull_state, Object::data, DEG_get_evaluated_scene(), draw_aa, draw_cavity, draw_curvature, draw_dof, draw_object_id, draw_outline, draw_shadows, DRW_context_state_get(), DRW_STATE_CLIP_PLANES, DRW_STATE_CULL_BACK, DRW_state_is_navigating(), DRW_state_is_playback(), DRW_state_is_scene_render(), DRW_STATE_NO_DRAW, DRW_view_persmat_get(), DRW_viewport_size_get(), ELEM, View3DShading::flag, lighting_type, blender::workbench::lighting_type_from_v3d_lighting(), material_override, max_ii(), min_ii(), OB_CAMERA, OB_MATERIAL, OB_RENDER, OB_SOLID, object_mode, RegionView3D::persp, R_ALPHAPREMUL, render_finished, reset_taa_next_sample, resolution, RegionView3D::rflag, RV3D_BOXCLIP, RV3D_CAMOB, RV3D_CLIPPING_ENABLED, RV3D_GPULIGHT_UPDATE, RV3D_LOCK_FLAGS, sample, samples_len, shading, View3D::shading, SHADING_XRAY_ALPHA, SHADING_XRAY_ENABLED, Object::type, View3DShading::type, V3D_LIGHTING_FLAT, V3D_SHADING_BACKFACE_CULLING, V3D_SHADING_CAVITY, V3D_SHADING_CAVITY_BOTH, V3D_SHADING_CAVITY_CURVATURE, V3D_SHADING_CAVITY_SSAO, V3D_SHADING_DEPTH_OF_FIELD, V3D_SHADING_OBJECT_COLOR, V3D_SHADING_OBJECT_OUTLINE, V3D_SHADING_SHADOW, view_projection_matrix, w(), and xray_mode.
Referenced by blender::workbench::Instance::init().
Definition at line 159 of file workbench_private.hh.
Referenced by blender::workbench::Instance::draw(), blender::workbench::SceneResources::init(), and init().
| Camera* blender::workbench::SceneState::camera = nullptr |
Definition at line 146 of file workbench_private.hh.
Referenced by blender::workbench::DofPass::init().
| Object* blender::workbench::SceneState::camera_object = nullptr |
Definition at line 145 of file workbench_private.hh.
Referenced by blender::workbench::DofPass::init(), and init().
Definition at line 157 of file workbench_private.hh.
Referenced by blender::workbench::SceneResources::init(), init(), blender::workbench::OpaquePass::sync(), blender::workbench::TransparentDepthPass::sync(), and blender::workbench::TransparentPass::sync().
| DRWState blender::workbench::SceneState::cull_state = DRW_STATE_NO_DRAW |
Definition at line 156 of file workbench_private.hh.
Referenced by init(), blender::workbench::ShadowPass::object_sync(), blender::workbench::OpaquePass::sync(), blender::workbench::TransparentDepthPass::sync(), and blender::workbench::TransparentPass::sync().
| bool blender::workbench::SceneState::draw_aa = false |
Definition at line 166 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::init(), and init().
| bool blender::workbench::SceneState::draw_cavity = false |
Definition at line 161 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), init(), and blender::workbench::OpaquePass::sync().
| bool blender::workbench::SceneState::draw_curvature = false |
Definition at line 162 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), init(), and blender::workbench::OpaquePass::sync().
| bool blender::workbench::SceneState::draw_dof = false |
Definition at line 165 of file workbench_private.hh.
Referenced by blender::workbench::DofPass::init(), blender::workbench::SceneResources::init(), and init().
| 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().
| bool blender::workbench::SceneState::draw_outline = false |
Definition at line 164 of file workbench_private.hh.
Referenced by blender::workbench::OutlinePass::init(), and init().
| bool blender::workbench::SceneState::draw_shadows = false |
Definition at line 163 of file workbench_private.hh.
Referenced by blender::workbench::Instance::draw(), init(), blender::workbench::ShadowPass::init(), blender::workbench::ObjectState::ObjectState(), and blender::workbench::OpaquePass::sync().
| eLightingType blender::workbench::SceneState::lighting_type = eLightingType::STUDIO |
Definition at line 153 of file workbench_private.hh.
Referenced by init(), blender::workbench::OpaquePass::sync(), and blender::workbench::TransparentPass::sync().
Definition at line 178 of file workbench_private.hh.
Referenced by blender::workbench::Instance::get_material().
Definition at line 176 of file workbench_private.hh.
Referenced by blender::workbench::Instance::get_material(), and init().
| 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().
| bool blender::workbench::SceneState::render_finished = false |
Definition at line 173 of file workbench_private.hh.
Referenced by blender::workbench::Instance::draw(), init(), and blender::workbench::Instance::object_sync().
| 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().
| int blender::workbench::SceneState::sample = 0 |
Definition at line 170 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::Instance::draw(), blender::workbench::Instance::draw_image_render(), blender::workbench::Instance::draw_viewport(), blender::workbench::CavityEffect::init(), blender::workbench::DofPass::init(), init(), blender::workbench::VolumePass::object_sync_modifier(), blender::workbench::VolumePass::object_sync_volume(), blender::workbench::AntiAliasingPass::setup_view(), and blender::workbench::AntiAliasingPass::sync().
| int blender::workbench::SceneState::samples_len = 0 |
Definition at line 171 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::Instance::draw_image_render(), blender::workbench::Instance::draw_viewport(), blender::workbench::CavityEffect::init(), blender::workbench::DofPass::init(), init(), and blender::workbench::AntiAliasingPass::setup_view().
| Scene* blender::workbench::SceneState::scene = nullptr |
Definition at line 143 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), blender::workbench::ShadowPass::init(), blender::workbench::Instance::object_sync(), and blender::workbench::ObjectState::ObjectState().
| View3DShading blender::workbench::SceneState::shading = {} |
Definition at line 152 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), blender::workbench::SceneResources::init(), init(), blender::workbench::ShadowPass::init(), blender::workbench::Instance::object_sync(), blender::workbench::VolumePass::object_sync_modifier(), blender::workbench::VolumePass::object_sync_volume(), and blender::workbench::ObjectState::ObjectState().
| float4x4 blender::workbench::SceneState::view_projection_matrix = float4x4::identity() |
Definition at line 147 of file workbench_private.hh.
Referenced by init().
| 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().