move shaders to separate directory
This commit is contained in:
@ -8,8 +8,8 @@
|
|||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include "puzzle.hpp"
|
|
||||||
#include "physics.hpp"
|
#include "physics.hpp"
|
||||||
|
#include "puzzle.hpp"
|
||||||
|
|
||||||
#ifdef BATCHING
|
#ifdef BATCHING
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@ -121,8 +121,8 @@ auto Renderer::AllocateGraphInstancing(const MassSpringSystem &mass_springs)
|
|||||||
-> void {
|
-> void {
|
||||||
cube_instance = GenMeshCube(VERTEX_SIZE, VERTEX_SIZE, VERTEX_SIZE);
|
cube_instance = GenMeshCube(VERTEX_SIZE, VERTEX_SIZE, VERTEX_SIZE);
|
||||||
|
|
||||||
instancing_shader =
|
instancing_shader = LoadShader("shader/instancing_vertex.glsl",
|
||||||
LoadShader("instancing_vertex.glsl", "instancing_fragment.glsl");
|
"shader/instancing_fragment.glsl");
|
||||||
instancing_shader.locs[SHADER_LOC_MATRIX_MVP] =
|
instancing_shader.locs[SHADER_LOC_MATRIX_MVP] =
|
||||||
GetShaderLocation(instancing_shader, "mvp");
|
GetShaderLocation(instancing_shader, "mvp");
|
||||||
instancing_shader.locs[SHADER_LOC_VECTOR_VIEW] =
|
instancing_shader.locs[SHADER_LOC_VECTOR_VIEW] =
|
||||||
|
|||||||
Reference in New Issue
Block a user