Fix shaders path

This commit is contained in:
ubkp 2023-09-14 21:40:06 -03:00
parent 8a1779b2ad
commit 0b08f37a69

View File

@ -68,8 +68,9 @@ int main(void)
} }
// Load lighting shader // Load lighting shader
Shader shader = LoadShader(TextFormat("resources/shaders/glsl%i/lighting_instancing.vs", GLSL_VERSION), const char *applicationDir = GetApplicationDirectory();
TextFormat("resources/shaders/glsl%i/lighting.fs", GLSL_VERSION)); Shader shader = LoadShader(TextFormat("%sresources/shaders/glsl%i/lighting_instancing.vs", applicationDir, GLSL_VERSION),
TextFormat("%sresources/shaders/glsl%i/lighting.fs", applicationDir, GLSL_VERSION));
// Get shader locations // Get shader locations
shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp"); shader.locs[SHADER_LOC_MATRIX_MVP] = GetShaderLocation(shader, "mvp");
shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos"); shader.locs[SHADER_LOC_VECTOR_VIEW] = GetShaderLocation(shader, "viewPos");