{"id":17798801,"url":"https://github.com/ameobea/three-volumetric-pass","last_synced_at":"2025-03-17T04:33:57.431Z","repository":{"id":212195519,"uuid":"730882892","full_name":"Ameobea/three-volumetric-pass","owner":"Ameobea","description":"Raymarched screen space volumetrics in Three.JS, compatible with the pmndrs `postprocessing` library","archived":false,"fork":false,"pushed_at":"2023-12-23T15:19:13.000Z","size":30,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T21:23:10.400Z","etag":null,"topics":["postprocessing","raymarching","threejs","volumetric-rendering"],"latest_commit_sha":null,"homepage":"https://three-volumetric-pass.ameo.design/","language":"TypeScript","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/Ameobea.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":"2023-12-12T22:09:41.000Z","updated_at":"2025-01-08T23:02:01.000Z","dependencies_parsed_at":"2023-12-23T17:12:22.038Z","dependency_job_id":null,"html_url":"https://github.com/Ameobea/three-volumetric-pass","commit_stats":null,"previous_names":["ameobea/three-volumetric-pass"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ameobea%2Fthree-volumetric-pass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ameobea%2Fthree-volumetric-pass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ameobea%2Fthree-volumetric-pass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ameobea%2Fthree-volumetric-pass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ameobea","download_url":"https://codeload.github.com/Ameobea/three-volumetric-pass/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852484,"owners_count":20358271,"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":["postprocessing","raymarching","threejs","volumetric-rendering"],"created_at":"2024-10-27T12:01:30.623Z","updated_at":"2025-03-17T04:33:57.176Z","avatar_url":"https://github.com/Ameobea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# three-volumetric-pass\n\n[![npm version](https://img.shields.io/npm/v/three-hex-tiling.svg?style=flat-square)](https://www.npmjs.com/package/three-hex-tiling)\n[![twitter](https://flat.badgen.net/badge/twitter/@ameobea10/?icon\u0026label)](https://twitter.com/ameobea10)\n\nAn implementation of raymarched screen space volumetrics in Three.JS, compatible with the [pmndrs `postprocessing` library](https://github.com/pmndrs/postprocessing).\n\nUseful for adding clouds, fog, and other volumetric effects to your Three.JS scenes.\n\nInteractive Demo: \u003chttps://three-volumetric-pass.ameo.design/\u003e\n\n## Installation + Usage\n\n`npm install three-volumetric-pass postprocessing`\n\n```ts\nimport { EffectComposer, RenderPass } from 'postprocessing';\nimport { VolumetricPass } from 'three-volumetric-pass';\n\nconst composer = new EffectComposer(renderer, { frameBufferType: THREE.HalfFloatType });\n\ncomposer.addPass(new RenderPass(scene, camera));\nconst volumetricPass = new VolumetricPass(scene, camera, {\n  halfRes: true,\n  // other params go here\n});\n\nconst animate = () =\u003e {\n  composer.render();\n  animate();\n};\n\nanimate();\n```\n\n## Credits\n\nSeveral parts of the core shader implementation were inspired by this \"Clouds\" ShaderToy demo by [Inigo Quilez](https://iquilezles.org/): \u003chttps://www.shadertoy.com/view/XslGRr\u003e\n\nSome shader components involving the depth buffer were taken from [`three-good-godrays`](https://github.com/ameobea/three-good-godrays) which contains code originally written by [n8programs](https://github.com/N8python)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameobea%2Fthree-volumetric-pass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fameobea%2Fthree-volumetric-pass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameobea%2Fthree-volumetric-pass/lists"}