{"id":26990455,"url":"https://github.com/fdesjardins/webgl","last_synced_at":"2025-04-03T21:38:08.155Z","repository":{"id":22806007,"uuid":"97363627","full_name":"fdesjardins/webgl","owner":"fdesjardins","description":"Examples, tutorials, mini-projects, ...","archived":false,"fork":false,"pushed_at":"2024-12-17T02:15:51.000Z","size":63251,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"v2","last_synced_at":"2025-04-02T00:51:40.340Z","etag":null,"topics":["babel","glsl","gpgpu","gpujs","physics","react","simulation","threejs","tutorials","webgl","webgl2","webpack"],"latest_commit_sha":null,"homepage":"https://fdesjardins.github.io/webgl/","language":"JavaScript","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/fdesjardins.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}},"created_at":"2017-07-16T06:04:50.000Z","updated_at":"2024-12-17T02:15:11.000Z","dependencies_parsed_at":"2024-02-03T06:27:03.778Z","dependency_job_id":"a759cd19-324b-4009-9a30-dd78094a0db8","html_url":"https://github.com/fdesjardins/webgl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdesjardins%2Fwebgl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdesjardins%2Fwebgl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdesjardins%2Fwebgl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdesjardins%2Fwebgl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdesjardins","download_url":"https://codeload.github.com/fdesjardins/webgl/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085972,"owners_count":20881157,"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":["babel","glsl","gpgpu","gpujs","physics","react","simulation","threejs","tutorials","webgl","webgl2","webpack"],"created_at":"2025-04-03T21:38:07.635Z","updated_at":"2025-04-03T21:38:08.144Z","avatar_url":"https://github.com/fdesjardins.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebGL Experiments\n\nA playground for WebGL stuff\n\n## Getting Started\n\n```console\nnpm install\nnpm start\n```\n\n## Adding a Page\n\n1. Create a new directory in [src/pages/](src/pages/)\n2. Create an `index.js` in that directory with the following format:\n\n```js\nexport const meta = {\n  title: 'My Experiment',\n  tags: 'threejs,gpgpu',\n}\n\nexport const init = ({ canvas, container }) =\u003e {\n  // WebGL code goes here\n  return () =\u003e {\n    // Cleanup code goes here\n  }\n}\n```\n\nSee [src/pages/hello-three](src/pages/hello-three) for a very basic example.\n\nYou can also supply an `options` export to customize the page. For example, you can create a shadertoy-like environment where you only need to supply the shader code:\n\n```js\nimport fs from './fs.glsl'\nimport vs from './vs.glsl'\nimport texture from './rusty-metal-512x512.jpg'\n\n...\nexport const options = {\n  display: 'fullscreen',\n  type: 'shadertoy',\n  shadertoy: {\n    vs, // optional; default is passthrough shader\n    fs,\n    iChannel0: texture // optional\n  },\n}\n```\n\n## Credits\n\nMany thanks to `iq` and `mrdoob`.\n\n## License\n\nMIT © [Forrest Desjardins](https://github.com/fdesjardins)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdesjardins%2Fwebgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdesjardins%2Fwebgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdesjardins%2Fwebgl/lists"}