mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add 'u_lightDir' to main shader
This commit is contained in:
parent
bed49e54fd
commit
ca69b55875
3 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue