Open3D (C++ API)  0.18.0
Loading...
Searching...
No Matches
RendererStructs.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 <json/json.h>
11
12#include <Eigen/Geometry>
13
15
16namespace open3d {
17
18namespace geometry {
19class Geometry3D;
20}
21
22namespace visualization {
23namespace rendering {
24
27
29 float intensity;
30 float falloff;
31 // Spot lights only
33 // Spot lights only
35 Eigen::Vector3f color;
36 Eigen::Vector3f direction;
37 Eigen::Vector3f position;
39
40 Json::Value custom_attributes;
41
43 : type(POINT),
44 intensity(10000),
45 falloff(10),
46 light_cone_inner(float(M_PI / 4.0)),
47 light_cone_outer(float(M_PI / 2.0)),
48 color(1.f, 1.f, 1.f),
49 direction(0.f, 0.f, -1.f),
50 position(0.f, 0.f, 0.f),
51 cast_shadows(true) {}
52};
53
54} // namespace rendering
55} // namespace visualization
56} // namespace open3d
Definition PinholeCameraIntrinsic.cpp:16
Eigen::Vector3f color
Definition RendererStructs.h:35
float light_cone_inner
Definition RendererStructs.h:32
Eigen::Vector3f position
Definition RendererStructs.h:37
float falloff
Definition RendererStructs.h:30
Eigen::Vector3f direction
Definition RendererStructs.h:36
@ POINT
Definition RendererStructs.h:26
@ DIRECTIONAL
Definition RendererStructs.h:26
bool cast_shadows
Definition RendererStructs.h:38
LightDescription()
Definition RendererStructs.h:42
float light_cone_outer
Definition RendererStructs.h:34
eLightType type
Definition RendererStructs.h:28
float intensity
Definition RendererStructs.h:29
Json::Value custom_attributes
Definition RendererStructs.h:40