{"id":19293332,"url":"https://github.com/oblerion/lightmanager_raylib","last_synced_at":"2026-07-02T16:30:27.411Z","repository":{"id":216203318,"uuid":"740721442","full_name":"oblerion/lightmanager_raylib","owner":"oblerion","description":"3d light manager for raylib","archived":false,"fork":false,"pushed_at":"2024-01-09T00:11:36.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T20:41:11.022Z","etag":null,"topics":["3d","light","raylib-c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oblerion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T23:33:23.000Z","updated_at":"2024-01-09T16:16:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"2dbbabb7-224b-45df-9504-e2d814c4e313","html_url":"https://github.com/oblerion/lightmanager_raylib","commit_stats":null,"previous_names":["oblerion/lightmanager_raylib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Flightmanager_raylib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Flightmanager_raylib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Flightmanager_raylib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Flightmanager_raylib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oblerion","download_url":"https://codeload.github.com/oblerion/lightmanager_raylib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240396700,"owners_count":19794718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","light","raylib-c"],"created_at":"2024-11-09T22:34:40.367Z","updated_at":"2026-07-02T16:30:25.313Z","avatar_url":"https://github.com/oblerion.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lightmanager_raylib\nlightmanager for raylib\n\nuse edited rlight.h from shader raylib example\u003cbr\u003e\nuse shader lighting from shader raylib example\n\n## Example \n```cpp\n#include \"raylib.h\"\n#include \"lightmanager.h\"\nint main(void)\n{\n\n    // Initialization\n    //--------------------------------------------------------------------------------------\n   // float fraq = GetMonitorWidth(0)/GetMonitorHeight(0);\n    const int screenWidth = 1000; //GetMonitorWidth(0);\n    const int screenHeight = 600;//GetMonitorHeight(0);\n    InitWindow(screenWidth, screenHeight, \"raylib [core] example - basic window\");\n\n\n    SetTargetFPS(60);   // Set our game to run at 60 frames-per-second\n\n    Camera camera = { 0 };\n    camera.position = (Vector3){ 40.0f, 40.0f, 0.0f }; // Camera position\n    camera.target = (Vector3){ 0.0f, 0.0f, 0.0f };      // Camera looking at point\n    camera.up = (Vector3){ 0.0f, 1.0f, 0.0f };          // Camera up vector (rotation towards target)\n    camera.fovy = 45.0f;                                // Camera field-of-view Y\n    Vector3 position = { 0.0f, 0.0f, 0.0f };\n    camera.projection=CAMERA_PERSPECTIVE;\n\n    Model mod = LoadModel(\"asset/ship_Awing_gene.glb\");\n    float rot = 0;\n   \n    LM_Init();// light manager init\n    LM_AddPointLight((Vector3){15,15,15},(Vector3){0,0,0},WHITE); // add light point\n    LM_AddPointLight((Vector3){-15,15,15},(Vector3){0,0,0},GREEN);\n    LM_AppliShader(\u0026mod);// appli shader to model\n    while (!WindowShouldClose())    // Detect window close button or ESC key\n    {\n        BeginDrawing();\n        ClearBackground(BLACK);\n\n        BeginMode3D(camera);\n        DrawModelEx(mod,(Vector3){0,0,0},(Vector3){0,1,0},rot,(Vector3){1,1,1},WHITE);\n        rot = rot +5*GetFrameTime();\n        EndMode3D();\n\n        EndDrawing();\n    }\n    UnloadModel(mod);\n    LM_Unload();// unload light shader\n    CloseWindow();        // Close window and OpenGL\n    return 0;\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblerion%2Flightmanager_raylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foblerion%2Flightmanager_raylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblerion%2Flightmanager_raylib/lists"}