Dandelion 1.1.2
A light-weight 3D builder for educational usage
载入中...
搜索中...
未找到
light.h
浏览该文件的文档.
1#ifndef DANDELION_LIGHT_H
2#define DANDELION_LIGHT_H
3
4#include <Eigen/Core>
5
6/*!
7 * \ingroup rendering
8 * \file scene/light.h
9 * \~chinese
10 * \brief 包含光源的类,目前只有一个点光源。
11 */
12
13/*!
14 * \ingroup rendering
15 * \~chinese
16 * \brief 表示一个点光源的类。
17 */
18struct Light
19{
20 /*! \~chinese 禁止无参构造。 */
21 Light() = delete;
22 /*!
23 * \~chinese
24 * 在指定位置创建一个指定强度的点光源。
25 * \param position 光源位置
26 * \param position 光源强度
27 */
28 Light(const Eigen::Vector3f& position, float intensity);
29
30 /*! \~chinese 光源位置。 */
31 Eigen::Vector3f position;
32 /*! \~chinese 光源强度。 */
33 float intensity;
34};
35
36#endif // DANDELION_LIGHT_H
float intensity
定义 light.h:33
Light(const Eigen::Vector3f &position, float intensity)
Eigen::Vector3f position
定义 light.h:31
Light()=delete