mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 09:19:18 +02:00
merge, fixed, sort of works (todo: fix cabin light, stars and fog)
This commit is contained in:
3
shader.h
3
shader.h
@@ -56,13 +56,14 @@ public:
|
||||
gl_program_light(std::vector<gl_shader>);
|
||||
|
||||
void set_ambient(glm::vec3 &ambient);
|
||||
void set_material(glm::vec3 &emission);
|
||||
void set_material(float specular, glm::vec3 &emission);
|
||||
void set_light_count(GLuint count);
|
||||
void set_light(GLuint id, type t, glm::vec3 &pos, glm::vec3 &dir, float in_cutoff, float out_cutoff,
|
||||
glm::vec3 &color, float linear, float quadratic);
|
||||
|
||||
private:
|
||||
GLuint ambient_uniform;
|
||||
GLuint specular_uniform;
|
||||
GLuint emission_uniform;
|
||||
GLuint lcount_uniform;
|
||||
struct light_s
|
||||
|
||||
Reference in New Issue
Block a user