add 'u_lightDir' to main shader

This commit is contained in:
MihailRis
2024-10-28 11:33:46 +03:00
parent bed49e54fd
commit ca69b55875
3 changed files with 9 additions and 1 deletions
+6
View File
@@ -3,6 +3,7 @@
#include <memory>
#include <string>
#include <vector>
#include <glm/glm.hpp>
#include "typedefs.hpp"
#include "maths/fastmaths.hpp"
@@ -27,6 +28,7 @@ class Skybox {
Shader* shader;
bool ready = false;
FastRandom random;
glm::vec3 lightDir;
std::unique_ptr<Mesh> mesh;
std::unique_ptr<Batch3D> batch3d;
@@ -52,4 +54,8 @@ public:
bool isReady() const {
return ready;
}
const glm::vec3 getLightDir() const {
return lightDir;
}
};