sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
components
lights
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
29
namespace
scl
30
{
32
struct
point_light_component
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
43
point_light_component
() =
default
;
44
point_light_component
(
const
point_light_component
&Other) =
default
;
45
point_light_component
(
const
vec3
&
Color
,
float
Constant
,
float
Linear
,
float
Quadratic
) :
46
Color
(
Color
),
Constant
(
Constant
),
Linear
(
Linear
),
Quadratic
(
Quadratic
) {}
47
~point_light_component
() =
default
;
48
};
49
}
base.h
Topology object basis class for mesh creating implementation module.
scl::math::vec3< float >
scl
Definition:
base.h:33
scl::point_light_component
Definition:
point_light_component.h:33
scl::point_light_component::Constant
float Constant
Definition:
point_light_component.h:39
scl::point_light_component::Strength
float Strength
Definition:
point_light_component.h:36
scl::point_light_component::point_light_component
point_light_component(const point_light_component &Other)=default
scl::point_light_component::Quadratic
float Quadratic
Definition:
point_light_component.h:41
scl::point_light_component::Color
vec3 Color
Definition:
point_light_component.h:35
scl::point_light_component::point_light_component
point_light_component(const vec3 &Color, float Constant, float Linear, float Quadratic)
Definition:
point_light_component.h:45
scl::point_light_component::~point_light_component
~point_light_component()=default
scl::point_light_component::Linear
float Linear
Definition:
point_light_component.h:40
scl::point_light_component::point_light_component
point_light_component()=default
Generated by
1.9.4