{"id":16345441,"url":"https://github.com/unclechu/playing-with-shaders","last_synced_at":"2025-11-07T15:30:26.044Z","repository":{"id":66006991,"uuid":"420804738","full_name":"unclechu/playing-with-shaders","owner":"unclechu","description":"Playing with GLSL shaders","archived":false,"fork":false,"pushed_at":"2021-12-11T03:01:22.000Z","size":342,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T22:24:10.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/unclechu.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":"2021-10-24T21:54:18.000Z","updated_at":"2022-04-07T02:04:43.000Z","dependencies_parsed_at":"2023-04-30T11:47:15.685Z","dependency_job_id":null,"html_url":"https://github.com/unclechu/playing-with-shaders","commit_stats":{"total_commits":77,"total_committers":1,"mean_commits":77.0,"dds":0.0,"last_synced_commit":"1a305cf1315875e42462806ada555020b4de03ee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fplaying-with-shaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fplaying-with-shaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fplaying-with-shaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fplaying-with-shaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unclechu","download_url":"https://codeload.github.com/unclechu/playing-with-shaders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533067,"owners_count":19654617,"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":[],"created_at":"2024-10-11T00:31:47.145Z","updated_at":"2025-11-07T15:30:25.965Z","avatar_url":"https://github.com/unclechu.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My GLSL shaders playground\n\n![Mandelbrot set](artwork/mandelbrot-set-screenshot.png)\n\n## Mandelbrot set movement controls\n\n### Keyboard\n\n1. Arrow keys (`←`, `→`, `↑`, and `↓`) for moving around\n1. `Z` and `X` for zooming in and zooming out\n1. `R` to reset everything to the starting point\n1. Hold `Alt` to slow down movement and zooming and hold `Shift` to speed it up\n\n### Mouse\n\n1. Drag and Drop (click left mouse button and hold while moving the cursor)\n1. Zoom by scrolling the mouse wheel\n\n## How to run\n\nI didn’t try and/or test it outside NixOS but technically if you install\nfollowing dependencies you can just run `make run` and it should work for you:\n\n1. GCC\n1. GNU Make\n1. pkg-config\n1. `xxd` executable\n1. GLFW3\n1. GLEW\n1. General OpenGL C header files\n\n### With Nix\n\nEither you enter a Nix Shell and run `make` commands:\n\n``` sh\nnix-shell --run 'make run'\n```\n\nOr you can build the derivation and run it:\n\n``` sh\nnix-build\nresult/bin/app\n```\n\nYou can pre-build Nix development environment\n(to add a GC root and prevent it from being garbage\ncollected unless you remove the `result*` symlink):\n\n``` sh\nnix-build -A env -o result-env\n```\n\n## Known issues\n\nGNU/Make doesn’t recognize changes in `*.glsl` source files for some reason.\nSo if you just change a shader without cleaning the cache you actually get\nprevious result. I usually use `touch src/main.cpp \u0026\u0026 make run` as a hack to not\nclean the whole cache. Or you can use this hack for automatically recompile and\nrun when you save any change in a shader file:\n\n``` sh\nwhile true; do inotifywait -e create src/shaders/** ; touch src/main.cpp \u0026\u0026 make run; done\n```\n\n## Author\n\nViacheslav Lotsmanov\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fplaying-with-shaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funclechu%2Fplaying-with-shaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fplaying-with-shaders/lists"}