36using blender::draw::Framebuffer;
38using blender::draw::ResourceHandle;
39using blender::draw::Texture;
40using blender::draw::View;
72 bNode *environment_node_ =
nullptr;
94 return parameters_.background_opacity;
99 return parameters_.blur;
104 return parameters_.intensity;
121 static constexpr int num_spheres = 2;
134 std::array<gpu::Batch *, MAX> sphere_lod_ = {};
137 float sphere_radius_;
149 Texture color_tx_ = {
"Lookdev.Color"};
153 Sphere spheres_[num_spheres];
160 void init(
const rcti *visible_rect);
171 float calc_viewport_scale();
172 SphereLOD calc_level_of_detail(
const float viewport_scale);
173 blender::gpu::Batch *sphere_get(
const SphereLOD level_of_detail);
A running instance of the engine.
LookdevModule(Instance &inst)
float background_blur_get() const
float background_opacity_get() const
bool sync(const LookdevParameters &new_parameters)
float intensity_get() const
detail::Pass< command::DrawCommandBuf > PassSimple
VecBase< float, 3 > float3
bool operator==(const LookdevParameters &other) const
bool operator!=(const LookdevParameters &other) const