{"id":15381541,"url":"https://github.com/riccardoscalco/glsl-tiling","last_synced_at":"2025-04-14T09:12:41.151Z","repository":{"id":34912680,"uuid":"189483302","full_name":"riccardoscalco/glsl-tiling","owner":"riccardoscalco","description":"Utility function for the tessellation of the [0, 1] plane.","archived":false,"fork":false,"pushed_at":"2023-02-03T02:43:19.000Z","size":542,"stargazers_count":3,"open_issues_count":14,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T09:12:08.347Z","etag":null,"topics":["glsl","glslify","tessellation","tiles","tiling","webgl"],"latest_commit_sha":null,"homepage":null,"language":"GLSL","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/riccardoscalco.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":"2019-05-30T21:13:31.000Z","updated_at":"2022-01-16T12:04:13.000Z","dependencies_parsed_at":"2024-10-18T00:37:40.412Z","dependency_job_id":null,"html_url":"https://github.com/riccardoscalco/glsl-tiling","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"9d26ec323449e4c3888c64d90b018f80d012a259"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoscalco%2Fglsl-tiling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoscalco%2Fglsl-tiling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoscalco%2Fglsl-tiling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardoscalco%2Fglsl-tiling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riccardoscalco","download_url":"https://codeload.github.com/riccardoscalco/glsl-tiling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852181,"owners_count":21171842,"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":["glsl","glslify","tessellation","tiles","tiling","webgl"],"created_at":"2024-10-01T14:27:53.116Z","updated_at":"2025-04-14T09:12:41.118Z","avatar_url":"https://github.com/riccardoscalco.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glsl-tiling\n\nUtility function for the tessellation of the [0, 1] plane.\n\n## Install\n\n```sh\nnpm install glsl-tiling\n```\n\n## Usage\n\n```glsl\n#pragma glslify: tiling = require(glsl-tiling);\n\nvoid main() {\n\tvec2 p = gl_FragCoord.xy / resolution.xy;\n\n\t// t.xy is a vec2 with the new coordinates.\n\t// t.zw is a vec2 with the tiles i, j indexes, from 0 to the number of columns(rows) - 1.\n\tvec4 t = tiling(p, vec2(3., 2.)); // 3 columns and 2 rows\n\n\tgl_FragColor = vec4(t.xy, vec2(1.0));\n}\n```\n\n\u003cimg width=\"500px\" src=\"./image.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friccardoscalco%2Fglsl-tiling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friccardoscalco%2Fglsl-tiling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friccardoscalco%2Fglsl-tiling/lists"}