{"id":22711618,"url":"https://github.com/polyfloyd/cube-shaders","last_synced_at":"2026-01-29T23:32:15.082Z","repository":{"id":138463844,"uuid":"132348795","full_name":"polyfloyd/cube-shaders","owner":"polyfloyd","description":"Animations for my 3D LED-Cube written in GLSL","archived":false,"fork":false,"pushed_at":"2019-03-15T23:26:18.000Z","size":24339,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T05:04:24.414Z","etag":null,"topics":["glsl","shadertoy"],"latest_commit_sha":null,"homepage":"https://polyfloyd.net/post/opengl-shaders-ledcube/","language":"GLSL","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/polyfloyd.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,"zenodo":null}},"created_at":"2018-05-06T14:57:42.000Z","updated_at":"2024-07-03T18:45:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"edcf72de-f5bc-453b-9f24-42c2be9be07c","html_url":"https://github.com/polyfloyd/cube-shaders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polyfloyd/cube-shaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyfloyd%2Fcube-shaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyfloyd%2Fcube-shaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyfloyd%2Fcube-shaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyfloyd%2Fcube-shaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polyfloyd","download_url":"https://codeload.github.com/polyfloyd/cube-shaders/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyfloyd%2Fcube-shaders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28890349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["glsl","shadertoy"],"created_at":"2024-12-10T13:07:36.441Z","updated_at":"2026-01-29T23:32:15.073Z","avatar_url":"https://github.com/polyfloyd.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"LED-Cube Shaders\n================\n\nThis repository contains GLSL animations for my LED-Panel-Cube to be rendered\nusing [Shady](https://github.com/polyfloyd/shady).\n\n## Usage\nAll animations for the cube should define a `mainCube` function as entry point\nalong with some boilerplate:\n```glsl\nvoid mainCube(out vec4 fragColor, in vec3 fragCoord) {\n  // Animation code goes here...\n}\n\n#ifndef _EMULATOR\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n  mainCube(fragColor, cube_map_to_3d(fragCoord));\n}\n#endif\n```\nThe `mainImage` function renders for the actual cube. It is wrapped in an\n`ifndef` so the emulator is allowed to redefine the `mainImage` function.\n\n### Emulator\nI've written a shader that acts as an emulator for the cube. It works by\ndefining a `mainImage` function that raymarches a cube and for each pixel on\nthe surface, calls `mainCube`.\n\nQuick test:\n```sh\nshady -g 1366x768 -i emulator.glsl -i anim/globe.glsl -ofmt rgb24 -framerate 20 \\\n  | ffplay -loglevel quiet -f rawvideo -pixel_format rgb24 -video_size 1366x768 -framerate 20 -i -\n```\n\n## Rendered\n![Blorps](gif/blorps.gif)\n![Fuji VHS](gif/fuji-vhs.gif)\n![Nyan](gif/nyan.gif)\n![Tesseract](gif/tesseract.gif)\n![Voronoi 3D](gif/voronoi-3d.gif)\n![RGB](gif/rgb.gif)\n![Cave Game](gif/cave-game.gif)\n![Globe](gif/globe.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyfloyd%2Fcube-shaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyfloyd%2Fcube-shaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyfloyd%2Fcube-shaders/lists"}