Brenta Engine
1.2
Loading...
Searching...
No Matches
dir_light.hpp
1
// SPDX-License-Identifier: MIT
2
// Author: Giovanni Santini
3
// Mail: giovanni.santini@proton.me
4
// Github: @San7o
5
6
#pragma once
7
8
#include <glm/vec3.hpp>
9
10
namespace
brenta
11
{
12
13
// Virtual directional light class
14
class
DirLight
15
{
16
public
:
17
18
glm::vec3 direction = glm::vec3(0.2f, -1.0f, -0.3f);
19
float
strength = 1.0f;
20
21
DirLight
() =
default
;
22
23
virtual
~DirLight
() =
default
;
24
virtual
void
apply() = 0;
25
26
};
27
28
}
// namespace brenta
brenta::DirLight
Definition
dir_light.hpp:15
include
brenta
renderer
dir_light.hpp
Generated by
1.9.8