{"id":21948117,"url":"https://github.com/evolution-gaming/babylonjs-godrays","last_synced_at":"2025-03-22T17:13:45.115Z","repository":{"id":74384295,"uuid":"156227604","full_name":"evolution-gaming/BabylonJS-Godrays","owner":"evolution-gaming","description":"Fast, spectacular, configurable and lightweight god rays plugin for BabylonJS","archived":false,"fork":false,"pushed_at":"2018-11-29T21:23:26.000Z","size":2239,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T19:54:08.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/evolution-gaming.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":"2018-11-05T14:06:21.000Z","updated_at":"2020-08-30T16:55:41.000Z","dependencies_parsed_at":"2023-05-18T08:00:47.384Z","dependency_job_id":null,"html_url":"https://github.com/evolution-gaming/BabylonJS-Godrays","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/evolution-gaming%2FBabylonJS-Godrays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2FBabylonJS-Godrays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2FBabylonJS-Godrays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2FBabylonJS-Godrays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/BabylonJS-Godrays/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244991177,"owners_count":20543627,"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-11-29T05:12:03.984Z","updated_at":"2025-03-22T17:13:45.108Z","avatar_url":"https://github.com/evolution-gaming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# God rays for BabylonJS\n\nGeometry based godrays for BabylonJS. Few times faster comparing to a built-in post-effect based ones. Configurable rotation speed, colors, size, density.\n\n![God rays](https://media.giphy.com/media/d7na8bnglKVf54foMw/giphy.gif)\n\n## How to use\n\n`npm install babylonjs-godrays --save`\n\n```\nimport { Godrays } from \"babylonjs-godrays\";\nconst godrays = new Godrays(scene);\ngodrays.position = new Vector3(x, y, z);\n```\n\nLook for a demo source code for more insights.\n\n## API\n\n* `godrays.start(multConfig)` Starts rays smoothly applying config passed as an argument.\n\nConfig interface:\n\n```\ninterface GodraysConfig {\n    colors: Array\u003cColor3\u003e; // Colors of rays\n    scale: number; // Default is 1\n    minSpeed: number; // Minimal rotation speed\n    maxSpeed: number; // Maximum rotation speed\n    density: number; // From 0 to 1 defines density of the rays\n}\n```\n\n* `godrays.stop()` Stops rays smoothly.\n\n* `godrays.setColors(Array\u003cColor3\u003e)` Sets colors of rays.\n\n* `godrays.setRaysScale(number)` Sets scale of rays.\n\n* `godrays.setRotataionSpeed(minSpeed: number, maxSpeed: number)` Sets min, max rotation speed applied to rays.\n\n* `godrays.setDensity(number)` Sets a density of rays. \n\n\n## License\n\nMIT: http://mit-license.org/\n\nAuthored 2018 Denis Radin aka [PixelsCommander](http://pixelscommander.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fbabylonjs-godrays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Fbabylonjs-godrays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Fbabylonjs-godrays/lists"}