CSEngine
Loading...
Searching...
No Matches
LightHelper.h
1
#pragma once
2
#include "../Vector.h"
3
4
namespace
CSE {
5
6
struct
BaseLight
{
7
8
vec3
color =
vec3
{ 2, 2, 2 };
9
10
11
};
12
13
struct
SLight
:
BaseLight
{
14
15
//Direction
16
vec4
direction;
17
18
//Point Light
19
vec3
* position;
20
float
radius = 1.0f;
21
vec3
att =
vec3
{ 1.f, 0.f, 0.f };
//Kc, Kl, Kq
22
23
//SpotLight
24
float
spot;
25
26
};
27
//struct DirectionalLight : BaseLight {
28
//
29
// vec3 direction;
30
// float pad;
31
//
32
//};
33
//
34
//struct PointLight : BaseLight {
35
//
36
//
37
// vec3* position;
38
// float range;
39
//
40
// vec4 att;
41
// float pad;
42
//
43
//};
44
//
45
//
46
//struct SpotLight : PointLight {
47
//
48
// vec4 direction;
49
// float spot;
50
//
51
//};
52
}
CSE::Vector3< float >
CSE::Vector4< float >
CSE::BaseLight
Definition
LightHelper.h:6
CSE::SLight
Definition
LightHelper.h:13
Util
Render
LightHelper.h
Generated on Fri Nov 8 2024 01:04:29 for CSEngine by
1.9.8