mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
geometry shaders, map poi icons
This commit is contained in:
@@ -63,6 +63,7 @@ void gl::glsl_common_setup()
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 lightview;
|
||||
vec3 scene_extra;
|
||||
float time;
|
||||
};
|
||||
|
||||
|
||||
@@ -228,6 +228,8 @@ gl::shader::shader(const std::string &filename)
|
||||
type = GL_VERTEX_SHADER;
|
||||
else if (strcend(filename, ".frag"))
|
||||
type = GL_FRAGMENT_SHADER;
|
||||
else if (strcend(filename, ".geom"))
|
||||
type = GL_GEOMETRY_SHADER;
|
||||
else
|
||||
throw shader_exception("unknown shader " + filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user