CSEngine
Loading...
Searching...
No Matches
LightHelper.h
1#pragma once
2#include "../Vector.h"
3
4namespace 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}