MQEngine
载入中...
搜索中...
未找到
LightingSystem.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/1/22.
3//
4
5#ifndef LIGHTINGSYSTEM_H
6#define LIGHTINGSYSTEM_H
8#include "../data/Component.h"
9#include "../core/Uniform.h"
10
12
13namespace MQEngine {
14 // Forward declarations
16 public:
17 LightingSystem(FCT::Context* ctx, DataManager* dataManager);
18 ~LightingSystem() = default;
19
20 void update();
21 void bind(FCT::Layout* layout);
22
23 private:
26
27 FCT::Context* m_ctx;
30 FCT::Uniform m_shadowUniform;
31
33
34 void updateShadowMatrix();
35 };
36}
37
38#endif //LIGHTINGSYSTEM_H
#define ENGINE_API
定义 EnginePCH.h:14
定义 DataManager.h:58
void update()
定义 LightingSystem.cpp:17
FCT::Uniform m_shadowUniform
定义 LightingSystem.h:30
FCT::Uniform m_directionalLightUniform
定义 LightingSystem.h:29
bool m_hasDirectionalLight
定义 LightingSystem.h:32
DataManager * m_dataManager
定义 LightingSystem.h:28
void updateShadowMatrix()
定义 LightingSystem.cpp:79
void updateDirectionalLight()
定义 LightingSystem.cpp:28
void bind(FCT::Layout *layout)
定义 LightingSystem.cpp:73
FCT::Context * m_ctx
定义 LightingSystem.h:27
LightingSystem(FCT::Context *ctx, DataManager *dataManager)
定义 LightingSystem.cpp:10
void bindDefaultDirectionalLight()
定义 LightingSystem.cpp:59
定义 application.h:5