Covellite++  Version: 2.3.0 Revision: ??? Platform: x64 Build: 23:13 04.01.2025
Кроссплатформенный фреймворк для разработки приложений на С++
Загрузка...
Поиск...
Не найдено
Lights.hpp
1
2#pragma once
3
4using float4 = ::glm::vec4;
5
6#define COVELLITE_MAX_LIGHT_POINT_OBJECT_COUNT 8
7
8struct Ambient_t
9{
10 float4 Color;
11 int IsValid, align1, align2, align3;
12};
13
14struct Direction_t
15{
16 float4 Color;
17 float4 Direction;
18 int IsValid, align1, align2, align3;
19};
20
21struct Point_t
22{
23 float4 Color;
24 float4 Position;
25 float4 Attenuation; // Const, Linear, Exponent, Radius;
26};
27
28struct Points_t
29{
30 Point_t Lights[COVELLITE_MAX_LIGHT_POINT_OBJECT_COUNT];
31 int UsedSlotCount;
32};
33
34struct Lights_t
35{
36 Ambient_t Ambient;
37 Direction_t Direction;
38 Points_t Points;
39};