Add everything.
Some checks failed
Build C++ Project with Fedora Container and Create Release / build (push) Has been cancelled

This commit is contained in:
2025-11-30 23:02:25 +01:00
commit ec1610443c
910 changed files with 425564 additions and 0 deletions

23
include/Skybox/Skybox.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef SKYBOX_H
#define SKYBOX_H
class Shader;
class Skybox {
private:
unsigned int VAO, VBO;
Shader* skyboxShader;
float timeOfDay = 0.5f; // 0.0 = night, 0.25 = sunrise, 0.5 = day, 0.75 = sunset, 1.0 = midnight
void setupMesh();
public:
Skybox();
~Skybox();
void draw(const float* view, const float* projection);
void setTimeOfDay(float time); // 0.0 to 1.0
float getTimeOfDay() const { return timeOfDay; }
};
#endif