diff options
| author | Ray <[email protected]> | 2021-03-17 12:17:35 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-17 12:17:35 +0100 |
| commit | 23b966d5155c721b71447ddb5129f9a3424ce5fb (patch) | |
| tree | cdb63a53df1a177a28b63deffbc5650a6f77adcf /examples/web/shaders/shaders_basic_lighting.c | |
| parent | 0ae8e4d606b8d9bd41f875f9395fcf3bfa1c9121 (diff) | |
| download | raylib.com-23b966d5155c721b71447ddb5129f9a3424ce5fb.tar.gz raylib.com-23b966d5155c721b71447ddb5129f9a3424ce5fb.zip | |
Update examples to use latest enum values
Diffstat (limited to 'examples/web/shaders/shaders_basic_lighting.c')
| -rw-r--r-- | examples/web/shaders/shaders_basic_lighting.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/shaders/shaders_basic_lighting.c b/examples/web/shaders/shaders_basic_lighting.c index 05b5acc..47c8de9 100644 --- a/examples/web/shaders/shaders_basic_lighting.c +++ b/examples/web/shaders/shaders_basic_lighting.c @@ -108,7 +108,7 @@ int main(void) // ambient light level ambientLoc = GetShaderLocation(shader, "ambient"); - SetShaderValue(shader, ambientLoc, (float[4]){ 0.2f, 0.2f, 0.2f, 1.0f }, UNIFORM_VEC4); + SetShaderValue(shader, ambientLoc, (float[4]){ 0.2f, 0.2f, 0.2f, 1.0f }, SHADER_UNIFORM_VEC4); // All models use the same shader modelA.materials[0].shader = shader; @@ -187,7 +187,7 @@ void UpdateDrawFrame(void) // Update the light shader with the camera view position float cameraPos[3] = { camera.position.x, camera.position.y, camera.position.z }; - SetShaderValue(shader, shader.locs[SHADER_LOC_VECTOR_VIEW], cameraPos, UNIFORM_VEC3); + SetShaderValue(shader, shader.locs[SHADER_LOC_VECTOR_VIEW], cameraPos, SHADER_UNIFORM_VEC3); //---------------------------------------------------------------------------------- // Draw |
