summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders/shaders_basic_lighting.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-03-02 13:27:54 +0100
committerRay <[email protected]>2020-03-02 13:27:54 +0100
commit485787059a00e54287f465464ce6e430fe9488c6 (patch)
treeb21425bbdd37196c3237cd7fe832d1994b634b7e /examples/shaders/shaders_basic_lighting.c
parent08615d3247c46aebd21ad8a9efc2c158c1b4b922 (diff)
downloadraylib-485787059a00e54287f465464ce6e430fe9488c6.tar.gz
raylib-485787059a00e54287f465464ce6e430fe9488c6.zip
Review shader exaples to work on web (GLSL 100)
Diffstat (limited to 'examples/shaders/shaders_basic_lighting.c')
-rw-r--r--examples/shaders/shaders_basic_lighting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shaders/shaders_basic_lighting.c b/examples/shaders/shaders_basic_lighting.c
index 74bf2775..a5bb145a 100644
--- a/examples/shaders/shaders_basic_lighting.c
+++ b/examples/shaders/shaders_basic_lighting.c
@@ -69,8 +69,8 @@ int main(void)
modelB.materials[0].maps[MAP_DIFFUSE].texture = texture;
modelC.materials[0].maps[MAP_DIFFUSE].texture = texture;
- Shader shader = LoadShader("resources/shaders/glsl330/basic_lighting.vs",
- "resources/shaders/glsl330/basic_lighting.fs");
+ Shader shader = LoadShader(FormatText("resources/shaders/glsl%i/base_lighting.vs", GLSL_VERSION),
+ FormatText("resources/shaders/glsl%i/lighting.fs", GLSL_VERSION));
// Get some shader loactions
shader.locs[LOC_MATRIX_MODEL] = GetShaderLocation(shader, "matModel");