sculpto
point_light_component.h
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file point_light_component.h
3 * \brief Point light component class implementation module.
4 *
5 * \author Sabitov Kirill
6 * \date 05 July 2022
7 *********************************************************************/
8
9#pragma once
10
11#include <base.h>
12
13/*!********** Point Light Contants *************
14 * Distance Constant Linear Quadratic
15 * 0007, 1.0, 0.7 , 1.8
16 * 0013, 1.0, 0.35 , 0.44
17 * 0020, 1.0, 0.22 , 0.20
18 * 0032, 1.0, 0.14 , 0.07
19 * 0050, 1.0, 0.09 , 0.032
20 * 0065, 1.0, 0.07 , 0.017
21 * 0100, 1.0, 0.045 , 0.0075
22 * 0160, 1.0, 0.027 , 0.0028
23 * 0200, 1.0, 0.022 , 0.0019
24 * 0325, 1.0, 0.014 , 0.0007
25 * 0600, 1.0, 0.007 , 0.0002
26 * 3250, 1.0, 0.0014, 0.000007
27 */
28
29namespace scl
30{
33 {
35 vec3 Color { 0.7f };
36 float Strength { 1 };
37
39 float Constant { 1.0f };
40 float Linear { 0.22f };
41 float Quadratic { 0.20f };
42
48 };
49}
Topology object basis class for mesh creating implementation module.
Definition: base.h:33
point_light_component(const point_light_component &Other)=default
point_light_component(const vec3 &Color, float Constant, float Linear, float Quadratic)