{"id":22159202,"url":"https://github.com/roldak/madarch","last_synced_at":"2025-10-12T16:31:11.323Z","repository":{"id":85677362,"uuid":"306466781","full_name":"Roldak/Madarch","owner":"Roldak","description":"Ray marching engine in Ada","archived":false,"fork":false,"pushed_at":"2023-02-10T21:05:36.000Z","size":8183,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-02T03:45:52.372Z","etag":null,"topics":["ada","distance-fields","global-illumination","opengl","raymarching","real-time","rendering"],"latest_commit_sha":null,"homepage":"","language":"Ada","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Roldak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-22T21:52:19.000Z","updated_at":"2024-09-15T05:36:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"09014716-6db8-45f5-beff-7b1bd05d2a64","html_url":"https://github.com/Roldak/Madarch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roldak%2FMadarch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roldak%2FMadarch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roldak%2FMadarch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roldak%2FMadarch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roldak","download_url":"https://codeload.github.com/Roldak/Madarch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236248737,"owners_count":19118584,"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":["ada","distance-fields","global-illumination","opengl","raymarching","real-time","rendering"],"created_at":"2024-12-02T03:44:40.108Z","updated_at":"2025-10-12T16:31:10.630Z","avatar_url":"https://github.com/Roldak.png","language":"Ada","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Madarch\nRay marching engine in Ada and GLSL.\n\n## Features\n\n- Real-time global illumination, based on the \u003ca href=http://jcgt.org/published/0008/02/01/paper-lowres.pdf\u003eDDGI\u003c/a\u003e paper.\n- Physically-based materials.\n- Soft shadows.\n- World-space reflections.\n- Glossy reflections (*WIP*).\n- World-space ambient occlusion.\n- Arbitrary meshes (voxelization, *WIP*).\n- Space partitioning (3D grid).\n- Volumetric lighting (light shafts).\n\n## Build library\n\nThe project uses [Alire](https://alire.ada.dev/) to manage its dependencies, but is not published there yet. So, simply clone this repository and run `alr build` to build the Madarch library.\n\n## Try the examples\n\nIn order to build and run the examples:\n\n- Build the Madarch library as described above.\n- Run `eval $(alr printenv)` to make it available in the current shell.\n- To build the `global_illumination` example, run `gprbuild -P examples/global_illumination/gi.gpr`.\n- Run it with `./examples/global_illumination/bin/main`. *Note that for now you **must** run it from Madarch's root directory*\n\nThe other examples follow a similar structure.\n\n## Illustrations\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=800 height=800 src=\"media/realtime_gi.gif\"\u003e\u003cbr\u003e\n  \u003ci\u003eFigure 1\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=800 height=800 src=\"media/room.png\"\u003e\u003cbr\u003e\n  \u003ci\u003eFigure 2\u003c/i\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=800 height=800 src=\"media/light_shafts.png\"\u003e\u003cbr\u003e\n  \u003ci\u003eFigure 3\u003c/i\u003e\n\u003c/p\u003e\n\n- *Figure 1* showcases real-time global illumination: when the spot light targets the blue wall, only blue light bounces off it and propagates in the room, meaning everything appears blue. Similarly, in turns red as soon as the spot hits the red wall.\n\n- *Figure 2* showcases world-space reflections (on the sphere), ambient occlusion, soft shadows and physically-based materials.\n\n- *Figure 3* showcases volumetric lighting: the point light is on the right of the sphere, so air particles on the left of lie in it its shadow, which creates a shadow volume.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froldak%2Fmadarch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froldak%2Fmadarch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froldak%2Fmadarch/lists"}