-
Notifications
You must be signed in to change notification settings - Fork 0
/
light.h
37 lines (34 loc) · 821 Bytes
/
light.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* File: light.h
* Authors: Alexander Epp, Rain Epp
* Project: CMPUT274 Final Project
* Description: Contains structures for storing information about lights.
*/
#pragma once
#include "vec.h"
struct PointLight
{
PointLight() = default;
PointLight(fvec3 pos, float in, fvec3 col) :
position(pos), intensity(in), colour(col) {}
fvec3 position;
float intensity;
fvec3 colour;
};
struct DirectionalLight
{
DirectionalLight() = default;
DirectionalLight(fvec3 dir, fvec3 col) :
direction(dir), colour(col) {}
fvec3 direction;
fvec3 colour;
};
// A struct is a bit overkill here, but this will help if light data is made
// more complex.
struct AmbientLight
{
AmbientLight() = default;
AmbientLight(fvec3 col) :
colour(col) {}
fvec3 colour;
};