{"id":21634521,"url":"https://github.com/arceryz/raylib-gpu-particles","last_synced_at":"2025-04-11T15:30:45.776Z","repository":{"id":232449625,"uuid":"784377650","full_name":"arceryz/raylib-gpu-particles","owner":"arceryz","description":"Raylib 100% GPU particles example in 3D. Uses compute shaders and is fully documented. Millions of particles at 60 fps on a laptop.","archived":false,"fork":false,"pushed_at":"2024-06-08T09:55:45.000Z","size":24490,"stargazers_count":121,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T11:39:10.044Z","etag":null,"topics":["c","compute-shader","example","glsl","gpu","gpu-acceleration","gui","lorenz-attractor","raygui","raylib","raylib-examples","tutorial"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arceryz.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-04-09T18:19:21.000Z","updated_at":"2025-03-21T02:50:47.000Z","dependencies_parsed_at":"2024-06-08T11:03:03.877Z","dependency_job_id":null,"html_url":"https://github.com/arceryz/raylib-gpu-particles","commit_stats":null,"previous_names":["arceryz/raylib-gpu-particles"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arceryz%2Fraylib-gpu-particles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arceryz%2Fraylib-gpu-particles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arceryz%2Fraylib-gpu-particles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arceryz%2Fraylib-gpu-particles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arceryz","download_url":"https://codeload.github.com/arceryz/raylib-gpu-particles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248431258,"owners_count":21102166,"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":["c","compute-shader","example","glsl","gpu","gpu-acceleration","gui","lorenz-attractor","raygui","raylib","raylib-examples","tutorial"],"created_at":"2024-11-25T03:17:01.043Z","updated_at":"2025-04-11T15:30:45.727Z","avatar_url":"https://github.com/arceryz.png","language":"C","readme":"# Raylib GPU Particles\n\n\u003cimg align=\"left\" style=\"width:260px\" src=\"https://github.com/arceryz/raylib-gpu-particles/blob/master/demo.gif\" width=\"288px\"\u003e\n\n**This example creates a 3D particle system fully on the GPU**.\n\nOn a simple laptop (MSI Katana) you can draw 2 million particles per frame at 60 fps. The particles are rendered as triangles with direction and magnitude.\n\nThe code is **Highly** documented, you will absolutely understand! It uses Raylib, rlgl (lower level Raylib) and Raygui. You can learn GPU Instancing, particle billboarding and rotating to movement and compute shaders all in Raylib!\n\n---\nThis example requires raylib to be compiled with `GRAPHIC_API=GRAPHICS_API_OPENGL_43`, otherwise you won't be able to use compute shaders.\n\nFeatures:\n\n- **Highly** documented, you will absolutely understand!\n- 100% GPU updated and drawn particles.\n- `raylib.h` API.\n- `rlgl.h` lower level API.\n- `raygui.h` API for **fun** sliders and playing around.\n- GPU Instancing example.\n- Particle billboarding and rotating to movement example.\n- Compute shader example.\n\n## Usage\nThere are four files in this project. The shaders should be placed under the /Shaders subdirectory. Make sure you have `raygui.h` in your source.\n\n- `main.c`\n- `particle_compute.glsl`: Update the particles positions and velocity.\n- `particle_vertex.glsl`: Convert triangles to particles by rotating, scaling, coloring and facing them to the camera.\n- `particle_fragment.glsl`: Output color.\n\nThe simulating parameters can be modified with sliders provided by RayGUI.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farceryz%2Fraylib-gpu-particles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farceryz%2Fraylib-gpu-particles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farceryz%2Fraylib-gpu-particles/lists"}