|
Blender V5.0
|
#include <workbench_private.hh>
Public Member Functions | |
| void | init (const DRWContext *context, bool scene_updated, 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 146 of file workbench_private.hh.
| void blender::workbench::SceneState::init | ( | const DRWContext * | context, |
| bool | scene_updated, | ||
| Object * | camera_ob = nullptr ) |
Definition at line 94 of file workbench_state.cc.
References blender::assign_if_different(), background_color, CAM_DOF_ENABLED, camera, View3D::camera, camera_object, RegionView3D::clip, clip_planes, CTX_data_mode_enum_ex(), cull_state, blender::draw::View::default_get(), DEG_get_evaluated_scene(), draw_aa, draw_cavity, draw_curvature, draw_dof, draw_object_id, draw_outline, draw_shadows, DRW_object_get_data_for_drawing(), DRW_STATE_CLIP_PLANES, DRW_STATE_CULL_BACK, DRW_STATE_NO_DRAW, ELEM, i, 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, blender::draw::View::persmat(), 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, scene, shading, View3D::shading, SHADING_XRAY_ALPHA, SHADING_XRAY_ENABLED, View3DShading::type, U, 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.
Definition at line 163 of file workbench_private.hh.
Referenced by blender::workbench::SceneResources::init(), and init().
Definition at line 150 of file workbench_private.hh.
Referenced by blender::workbench::DofPass::init(), and init().
Definition at line 149 of file workbench_private.hh.
Referenced by blender::workbench::DofPass::init(), and init().
Definition at line 161 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 160 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 170 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::init(), and init().
| bool blender::workbench::SceneState::draw_cavity = false |
Definition at line 165 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 166 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 169 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 172 of file workbench_private.hh.
Referenced by init().
| bool blender::workbench::SceneState::draw_outline = false |
Definition at line 168 of file workbench_private.hh.
Referenced by blender::workbench::OutlinePass::init(), and init().
| bool blender::workbench::SceneState::draw_shadows = false |
Definition at line 167 of file workbench_private.hh.
Referenced by 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 157 of file workbench_private.hh.
Referenced by init(), blender::workbench::OpaquePass::sync(), and blender::workbench::TransparentPass::sync().
Definition at line 182 of file workbench_private.hh.
Definition at line 180 of file workbench_private.hh.
Referenced by init().
| 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().
| bool blender::workbench::SceneState::render_finished = false |
Definition at line 177 of file workbench_private.hh.
Referenced by init().
| bool blender::workbench::SceneState::reset_taa_next_sample = false |
Definition at line 176 of file workbench_private.hh.
Referenced by init().
Definition at line 152 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::DofPass::init(), init(), blender::workbench::AntiAliasingPass::setup_view(), and blender::workbench::AntiAliasingPass::sync().
| int blender::workbench::SceneState::sample = 0 |
Definition at line 174 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), 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 175 of file workbench_private.hh.
Referenced by blender::workbench::AntiAliasingPass::draw(), blender::workbench::CavityEffect::init(), blender::workbench::DofPass::init(), init(), and blender::workbench::AntiAliasingPass::setup_view().
Definition at line 147 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), init(), blender::workbench::ShadowPass::init(), and blender::workbench::ObjectState::ObjectState().
| View3DShading blender::workbench::SceneState::shading = {} |
Definition at line 156 of file workbench_private.hh.
Referenced by blender::workbench::CavityEffect::init(), blender::workbench::SceneResources::init(), init(), blender::workbench::ShadowPass::init(), 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 151 of file workbench_private.hh.
Referenced by init().
| bool blender::workbench::SceneState::xray_mode = false |
Definition at line 158 of file workbench_private.hh.
Referenced by init().