{"id":27114144,"url":"https://github.com/wernerdinges/pixel-dithering","last_synced_at":"2026-05-03T07:46:43.382Z","repository":{"id":286484039,"uuid":"961542008","full_name":"WernerDinges/Pixel-Dithering","owner":"WernerDinges","description":"OpenGL pixelized fog","archived":false,"fork":false,"pushed_at":"2025-04-06T18:52:35.000Z","size":452,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T19:26:49.698Z","etag":null,"topics":["3d","dithering-algorithms","gamedev","opengl"],"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/WernerDinges.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":"2025-04-06T18:16:58.000Z","updated_at":"2025-04-06T18:52:38.000Z","dependencies_parsed_at":"2025-04-06T19:26:51.879Z","dependency_job_id":"f262065e-437f-4156-8dbb-211ecdcb6322","html_url":"https://github.com/WernerDinges/Pixel-Dithering","commit_stats":null,"previous_names":["wernerdinges/pixel-fog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WernerDinges%2FPixel-Dithering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WernerDinges%2FPixel-Dithering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WernerDinges%2FPixel-Dithering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WernerDinges%2FPixel-Dithering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WernerDinges","download_url":"https://codeload.github.com/WernerDinges/Pixel-Dithering/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589829,"owners_count":20963022,"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":["3d","dithering-algorithms","gamedev","opengl"],"created_at":"2025-04-07T03:39:14.558Z","updated_at":"2026-05-03T07:46:43.339Z","avatar_url":"https://github.com/WernerDinges.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenGL Fog Dithering\n\nThis is an example of a raymarching rendering that implements fog pixelization (dithering).\n\n![Screenshot 2025-04-03 000033](https://github.com/user-attachments/assets/caf00d28-e547-411d-81ab-6b5259eaad35)\n\n![Screenshot 2025-04-03 000957](https://github.com/user-attachments/assets/b7ac1179-ed44-4b44-9718-32acdce8184b)\n\n![Screenshot 2025-04-03 001008](https://github.com/user-attachments/assets/3c90696a-15df-4a0e-8c3d-03ab39d0cc70)\n\n![Screenshot 2025-04-03 001046](https://github.com/user-attachments/assets/e45762a6-1848-4cb4-9372-862478417bc4)\n\n## How does it work\n\nTo see the full code, see the [shader](https://github.com/WernerDinges/Pixel-fog/blob/main/resources/shaders/test.fs).\nIt is assumed that the reader is already familiar with the principle of raymarching.\n\nBy taking steps, the beam accumulates fog factor.\nFor each pixel in the Bayer matrix, a threshold is calculated, above which the clouding coefficient turns the pixel completely dark, otherwise - completely light.\n\nAdditionally, subtle white noise was applied for decorative purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwernerdinges%2Fpixel-dithering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwernerdinges%2Fpixel-dithering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwernerdinges%2Fpixel-dithering/lists"}