42using draw::Framebuffer;
44using draw::ResourceHandleRange;
80 bNode *environment_node_ =
nullptr;
86 int *xform_socket_ =
nullptr;
88 float *rotation_x_socket_ =
nullptr;
108 return parameters_.background_opacity;
113 return parameters_.blur;
118 return parameters_.intensity;
135 bool use_reference_spheres_ =
false;
137 bool use_viewspace_lighting_ =
false;
140 float studio_light_rotation_z_ = 0.0f;
142 static constexpr int num_spheres = 2;
155 std::array<gpu::Batch *, MAX> sphere_lod_ = {};
158 float sphere_radius_;
162 bool is_camera_view_ =
false;
171 Texture color_tx_ = {
"Lookdev.Color"};
175 Sphere spheres_[num_spheres];
183 Texture world_sphere_probe_ = {
"world_sphere_probe_"};
191 void init(
const rcti *visible_rect);
218 float calc_viewport_scale();
219 SphereLOD calc_level_of_detail(
const float viewport_scale);
220 gpu::Batch *sphere_get(
const SphereLOD level_of_detail);
A running instance of the engine.
void store_world_probe_data(Texture &in_sphere_probe, const SphereProbeAtlasCoord &atlas_coord, StorageBuffer< SphereProbeHarmonic, true > &in_volume_probe, UniformArrayBuffer< LightData, 2 > &in_sunlight)
void rotate_world_probe_data(Texture &dst_sphere_probe, const SphereProbeAtlasCoord &atlas_coord, StorageBuffer< SphereProbeHarmonic, true > &dst_volume_probe, UniformArrayBuffer< LightData, 2 > &dst_sunlight, float4x4 &rotation)
void init(const rcti *visible_rect)
LookdevModule(Instance &inst)
float background_blur_get() const
float background_opacity_get() const
bool sync(const LookdevParameters &new_parameters)
blender::World * world_get()
float intensity_get() const
detail::Pass< command::DrawCommandBuf > PassSimple
MatBase< float, 4, 4 > float4x4
VecBase< float, 3 > float3
static MatBase identity()
bool operator==(const LookdevParameters &other) const
std::string working_space
bool operator!=(const LookdevParameters &other) const