1 function RenderEngine:load_shaders()
2 local path = self:get_path() .. "/shaders/"
3 local program, vsh, fsh = gl.make_program({vertex = path .. "vertex.glsl", fragment = path .. "fragment.glsl"})
4 gl.delete_shaders(vsh, fs)
7 self.view_matix_location = gl.get_uniform_location(self.shaders, "view")
8 self.projection_matix_location = gl.get_uniform_location(self.shaders, "projection")