Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
Light.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2024 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7
8#pragma once
9
10#include <Eigen/Geometry>
11#include <cmath>
12
13namespace open3d {
14namespace visualization {
15namespace rendering {
16
17struct 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
Definition PinholeCameraIntrinsic.cpp:16
Eigen::Vector3f position
Definition Light.h:22
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