{"id":13547358,"url":"https://github.com/takahirox/aframe-rain","last_synced_at":"2025-11-13T22:58:28.016Z","repository":{"id":57174265,"uuid":"81054170","full_name":"takahirox/aframe-rain","owner":"takahirox","description":"A-Frame Rainfall effect component","archived":false,"fork":false,"pushed_at":"2017-02-23T19:52:45.000Z","size":97,"stargazers_count":41,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-23T20:16:00.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cdn.rawgit.com/takahirox/aframe-rain/v1.0.2/index.html","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/takahirox.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}},"created_at":"2017-02-06T06:14:09.000Z","updated_at":"2023-12-22T16:21:05.000Z","dependencies_parsed_at":"2022-08-29T00:03:13.995Z","dependency_job_id":null,"html_url":"https://github.com/takahirox/aframe-rain","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Faframe-rain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Faframe-rain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Faframe-rain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takahirox%2Faframe-rain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takahirox","download_url":"https://codeload.github.com/takahirox/aframe-rain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222863498,"owners_count":17049413,"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-08-01T12:00:54.508Z","updated_at":"2025-11-13T22:58:27.967Z","avatar_url":"https://github.com/takahirox.png","language":"JavaScript","funding_links":[],"categories":["🚀 A series of exquisite and compact web page cool effects"],"sub_categories":["Rain \u0026 Snow"],"readme":"# A-Frame Rain component\n\naframe-rain is Rainfall effect component for A-Frame which displays a lot of\nrain drop/splash objects by using instancing technique with good performance.\n\n![screenshot](./screenshot.png \"screenshot\")\n\nCloser rain drop height is shorter and further rain drop is more transparent,\nimplemented similar to Fog effect technique.\n\n## Demo\n\n[Demo](https://cdn.rawgit.com/takahirox/aframe-rain/v1.0.2/index.html)\n\n## Properties\n\n### aframe-rain\n\n| Properties    | type    | Default Value | Description |\n| ------------- | ------- | ------------- | ----------- |\n| color         | color   | '#ddf'        | Rain drop/splash color |\n| count         | int     | 5000          | The number of drops/splashes |\n| depthDensity  | number  | 0.05          | Depth density which affects rain drop height/opacity. The name is from Fog density |\n| dropHeight    | number  | 1.0           | Rain drop height |\n| dropRadius    | number  | 0.005         | Rain drop radius |\n| height        | number  | 30.0          | How high rain drops fall from |\n| opacity       | number  | 0.4           | Rain drop/splash opacity |\n| splash        | boolean | true          | If displays rain splash on ground |\n| splashBounce  | number  | 4.0           | Rain splash bound strongness |\n| splashGravity | number  | 9.8 * 4.0     | Rain splash gravity |\n| vector        | vec3    | '0, -40.0 0'  | Rain drop vector. y must be \u003c 0.0 |\n| width         | number  | 30.0          | Area where rain drop/sphash effect |\n\n## Browser\n\n### How to use\n\nTo apply Rain effect in a scene, add `rain` attribute in `\u003ca-scene\u003e` like `\u003ca-scene rain\u003e`.\n\n```html\n\u003chead\u003e\n  \u003cscript src=\"https://cdn.rawgit.com/aframevr/aframe/v0.4.0/dist/aframe-master.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://rawgit.com/takahirox/aframe-rain/master/build/aframe-rain.min.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003ca-scene rain\u003e\n    \u003ca-entity position=\"0 0 10\"\u003e\n      \u003ca-camera\u003e\u003c/a-camera\u003e\n    \u003c/a-entity\u003e\n\n    \u003ca-entity geometry=\"primitive:sphere\"\u003e\u003c/a-entity\u003e\n\n    \u003ca-sky color=\"#222\"\u003e\u003c/a-sky\u003e\n\n    \u003ca-entity light=\"type:directional;color:#666\" position=\"-10 -10 -10\"\u003e\u003c/a-entity\u003e\n  \u003c/a-scene\u003e\n\u003c/body\u003e\n```\n\n## NPM\n\n### How to install\n\n```\n$ npm install aframe-rain\n```\n\n### How to build\n\n```\n$ npm install\n$ npm run all\n```\n\n### How to load\n\n```\nrequire('aframe');\nrequire('aframe-rain');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakahirox%2Faframe-rain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakahirox%2Faframe-rain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakahirox%2Faframe-rain/lists"}