diff options
| author | Ray <raysan5@gmail.com> | 2016-01-17 02:13:08 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-01-17 02:13:08 +0100 |
| commit | f1d16386b6aa066776d0210a23081ea39069e975 (patch) | |
| tree | d77dc6b1a2e742599f07077d07769049b390d5d3 /examples | |
| parent | 144681fc0f44bc429f2c6cbc0036b1dbfcef00c0 (diff) | |
| download | raylib-f1d16386b6aa066776d0210a23081ea39069e975.tar.gz raylib-f1d16386b6aa066776d0210a23081ea39069e975.zip | |
Update shaders_basic_lighting.c
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shaders_basic_lighting.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/shaders_basic_lighting.c b/examples/shaders_basic_lighting.c index d7683648..ba779b94 100644 --- a/examples/shaders_basic_lighting.c +++ b/examples/shaders_basic_lighting.c @@ -1,6 +1,6 @@ /******************************************************************************************* * -* raylib [shaders] example - Blinn-Phong lighting +* raylib [shaders] example - Basic lighting: Blinn-Phong * * This example has been created using raylib 1.3 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) @@ -22,8 +22,7 @@ int main() const int screenHeight = 450; SetConfigFlags(FLAG_MSAA_4X_HINT); - InitWindow(screenWidth, screenHeight, "raylib [shaders] example - blinn-phong lighting"); - SetTargetFPS(60); + InitWindow(screenWidth, screenHeight, "raylib [shaders] example - basic lighting"); // Camera initialization Camera camera = {{ 8.0f, 8.0f, 8.0f }, { 0.0f, 3.0f, 0.0f }, { 0.0f, 1.0f, 0.0f }}; @@ -72,6 +71,8 @@ int main() SetCameraMode(CAMERA_FREE); // Set camera mode SetCameraPosition(camera.position); // Set internal camera position to match our camera position SetCameraTarget(camera.target); // Set internal camera target to match our camera target + + SetTargetFPS(60); //-------------------------------------------------------------------------------------- // Main game loop @@ -79,9 +80,7 @@ int main() { // Update //---------------------------------------------------------------------------------- - - // Update camera position - UpdateCamera(&camera); + UpdateCamera(&camera); // Update camera position // Glossiness input control if(IsKeyDown(KEY_UP)) matBlinn.glossiness += SHININESS_SPEED; |
