{"id":24141560,"url":"https://github.com/pannapudi/pilka","last_synced_at":"2026-03-27T04:04:15.608Z","repository":{"id":37358936,"uuid":"317291936","full_name":"pannapudi/pilka","owner":"pannapudi","description":"Another live-coding tool for creating shader demos, Vulkan+Wgpu powered.","archived":false,"fork":false,"pushed_at":"2025-03-16T05:31:07.000Z","size":11402,"stargazers_count":132,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T19:05:09.585Z","etag":null,"topics":["ash","glsl","graphics","rust","rust-lang","shaders","vulkan"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/pannapudi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-11-30T17:07:12.000Z","updated_at":"2025-03-16T05:31:11.000Z","dependencies_parsed_at":"2024-11-21T20:16:27.728Z","dependency_job_id":null,"html_url":"https://github.com/pannapudi/pilka","commit_stats":{"total_commits":661,"total_committers":6,"mean_commits":"110.16666666666667","dds":"0.036308623298033305","last_synced_commit":"d87af8bb87b11622a7474044bf53010bb72b0334"},"previous_names":["pannapudi/pilka","pudnax/pilka"],"tags_count":144,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pannapudi%2Fpilka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pannapudi%2Fpilka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pannapudi%2Fpilka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pannapudi%2Fpilka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pannapudi","download_url":"https://codeload.github.com/pannapudi/pilka/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543589,"owners_count":20955865,"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":["ash","glsl","graphics","rust","rust-lang","shaders","vulkan"],"created_at":"2025-01-12T04:34:36.306Z","updated_at":"2026-03-27T04:04:10.579Z","avatar_url":"https://github.com/pannapudi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pilka 🔩\n\n[![Crates.io](https://img.shields.io/crates/v/pilka.svg)](https://crates.io/crates/pilka)\n\nPilka is a cross-platform live-coding tool for creating shader\\* demos,\nsimilar to [Bonzomatic](https://github.com/Gargaj/Bonzomatic), [KodeLife](https://hexler.net/products/kodelife) or [sh4der-jockey](https://github.com/slerpyyy/sh4der-jockey).\n\nAvailable features:\n\n- [x] Hot-reload\n- [x] Saving shaders\n- [x] Taking screenshots\n- [x] Recording videos\n- [x] Compute pipeline for post processing\n\n![preview](menger_sponge.png)\n\n## How\n\nIn current state `pilka` tries to seek `shaders` folder with the files\n`shader.vert` and `shader.frag`, on fail `pilka` will generate\ndefault setup for you. Then open shader in your favourite code editor (VS,\nemacs, vim, ed etc.) and `pilka` would fetch changes after each save.\n\n## Controls\n\n- \u003ckbd\u003eF1\u003c/kbd\u003e: Print help\n- \u003ckbd\u003eF2\u003c/kbd\u003e: Toggle play/pause\n- \u003ckbd\u003eF3\u003c/kbd\u003e: Pause and step back one frame\n- \u003ckbd\u003eF4\u003c/kbd\u003e: Pause and step forward one frame\n- \u003ckbd\u003eF5\u003c/kbd\u003e: Restart playback at frame 0 (`Time` and `Pos` = 0)\n- \u003ckbd\u003eF6\u003c/kbd\u003e: Print parameters\n- \u003ckbd\u003eF10\u003c/kbd\u003e: Save shaders\n- \u003ckbd\u003eF11\u003c/kbd\u003e: Take Screenshot\n- \u003ckbd\u003eF12\u003c/kbd\u003e: Start/Stop record video\n- \u003ckbd\u003eESC\u003c/kbd\u003e: Exit the application\n- \u003ckbd\u003eArrows\u003c/kbd\u003e: Change `Pos`\n\n## Parameters\n\n(per-draw-update)\n\n| name          | type    | range   |\n| ------------- | ------- | ------- |\n| position      | vec3    | (-∞, ∞) |\n| time          | float   | [0, ∞)  |\n| resolution    | vec2    | [0, a]  |\n| mouse         | vec2    | [-1, 1] |\n| mouse_pressed | bool    |         |\n| frame         | uint    |         |\n| time_delta    | float   |         |\n| record_period | float   |         |\n| prev_frame    | texture |         |\n\n## Flags\n\n - `--record f32` - Specify duration of recorded video\n - `--size u32xu32` - Specify window size and lock from resizing\n\n## Requirements\n\nVulkan SDK is required.\n\nOn recent macOS, to allow sound input to be captured (for FFT textures to\nbe generated), you need to: Open up System Preferences, click on Security\n\u0026 Privacy, click on the Privacy tab then click on the Microphone menu item.\nMake sure `pilka` is in the list and ticked...\nerm, probably. I don't have macOS.\n\n## Installation\n\n```Bash\ncargo install pilka\n```\n\nYou also can install the application by to downloading the source code\nand build locally.\n\n```Bash\n# or through ssh git@github.com:pudnax/pilka.git\ngit clone https://github.com/pudnax/pilka.git\ncd pilka\ncargo install --path .\n```\n\n## Dependencies\n\n[winit](https://crates.io/crates/winit) is the \"default\" window library in Rust ecosystem. And it covers\nthe most of cross-platform issues for you.\n\n[png](https://crates.io/crates/png) is used to encode screenshots into png files.\n\n[notify](https://crates.io/crates/notify) is a file watcher and maintains the hot-reload.\n\n[ash](https://crates.io/crates/ash) is a Vulkan bindings. I choose `ash` because I see `pilka` as a\nlearning project and want to touch the maximum untouched Vulkan. For the\nsame reason I didn't use `vulkano`, `erupt`, `vulkanism`, `vkvk`.\n\n**Ffmpeg** is used to record videos. For my concerns it's\ntemporary solution after which I switch to [rav1e](https://github.com/xiph/rav1e) on it's release.\n\n### Places of inspiration (from where I steal code):\n\n- [piet-gpu](https://github.com/linebender/piet-gpu)\n- https://github.com/w23/OpenSource\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpannapudi%2Fpilka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpannapudi%2Fpilka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpannapudi%2Fpilka/lists"}