Add example code

This commit is contained in:
DESKTOP-3SJQ2V2\PC 2023-04-15 17:09:20 +07:00
commit 3f6e12ee04

View file

@ -26,7 +26,7 @@
#include "rlights.h"
#if defined(PLATFORM_DESKTOP)
#define GLSL_VERSION 330
#define GLSL_VERSION 430
#else // PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
#define GLSL_VERSION 100
#endif
@ -80,7 +80,7 @@ int main(void)
lights[2] = CreateLight(LIGHT_POINT, (Vector3){ -2, 1, 2 }, Vector3Zero(), GREEN, shader);
lights[3] = CreateLight(LIGHT_POINT, (Vector3){ 2, 1, -2 }, Vector3Zero(), BLUE, shader);
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
SetTargetFPS(144); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
// Main game loop