Open3D (C++ API)  0.18.0+252c867
Light.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Geometry>
11 #include <cmath>
12 
13 namespace open3d {
14 namespace visualization {
15 namespace rendering {
16 
17 struct Light {
19 
20  // common light parameters
21  Eigen::Vector3f color = Eigen::Vector3f(1.f, 1.f, 1.f);
22  Eigen::Vector3f position = Eigen::Vector3f(0.f, 0.f, 0.f);
24  float intensity = 10000.f;
25  float falloff = 10.f;
26  bool cast_shadows = false;
27 
28  Eigen::Vector3f direction = Eigen::Vector3f(0.f, 0.f, -1.f);
29 
30  // Spot lights parameters
31  float light_cone_inner = float(M_PI / 4.0);
32  float light_cone_outer = float(M_PI / 2.0);
33 };
34 
35 } // namespace rendering
36 } // namespace visualization
37 } // namespace open3d
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle float
Definition: K4aPlugin.cpp:460
Definition: PinholeCameraIntrinsic.cpp:16
Eigen::Vector3f position
Definition: Light.h:22
@ DIRECTIONAL
Definition: Light.h:18
float light_cone_inner
Definition: Light.h:31
Eigen::Vector3f direction
Definition: Light.h:28
float falloff
Definition: Light.h:25
bool cast_shadows
Definition: Light.h:26
eLightType type
Definition: Light.h:23
Eigen::Vector3f color
Definition: Light.h:21
float light_cone_outer
Definition: Light.h:32
float intensity
Definition: Light.h:24