{"id":14961012,"url":"https://github.com/superla-play/radiancehdrunity","last_synced_at":"2025-10-24T20:30:47.959Z","repository":{"id":62658183,"uuid":"539391349","full_name":"superla-play/RadianceHDRUnity","owner":"superla-play","description":"Support for the Radiance HDR (RGBE) image format at runtime in Unity.","archived":false,"fork":false,"pushed_at":"2024-04-05T11:36:58.000Z","size":54,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-31T03:54:42.291Z","etag":null,"topics":["hdr","hdri","radiance","rgbe","runtime","unity","unity3d","upm","upm-package"],"latest_commit_sha":null,"homepage":"https://openupm.com/packages/tv.superla.radiancehdr","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superla-play.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-09-21T08:49:02.000Z","updated_at":"2024-06-23T14:30:45.000Z","dependencies_parsed_at":"2023-08-30T16:59:45.014Z","dependency_job_id":"4559da42-d99a-4d62-8697-0fbe49a156f6","html_url":"https://github.com/superla-play/RadianceHDRUnity","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.5,"last_synced_commit":"ac09ffdd7675ba1d6ca8c82cbd68e2e9238acfbf"},"previous_names":["superla-play/radiancehdrunity"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superla-play%2FRadianceHDRUnity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superla-play%2FRadianceHDRUnity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superla-play%2FRadianceHDRUnity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superla-play%2FRadianceHDRUnity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superla-play","download_url":"https://codeload.github.com/superla-play/RadianceHDRUnity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238030288,"owners_count":19404859,"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":["hdr","hdri","radiance","rgbe","runtime","unity","unity3d","upm","upm-package"],"created_at":"2024-09-24T13:23:38.167Z","updated_at":"2025-10-24T20:30:42.656Z","avatar_url":"https://github.com/superla-play.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Radiance HDR for Unity\n\n[![openupm](https://img.shields.io/npm/v/tv.superla.radiancehdr?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/tv.superla.radiancehdr/)\n[![GitHub issues](https://img.shields.io/github/issues/superla-play/RadianceHDRUnity)](https://github.com/superla-play/RadianceHDRUnity/issues)\n[![GitHub license](https://img.shields.io/github/license/superla-play/RadianceHDRUnity)](https://github.com/superla-play/RadianceHDRUnity/blob/main/LICENSE.md)\n\nThis package enables the ability to load Radiance HDR (RGBE) images\nat runtime in Unity. We support RLE and non-RLE encoded images.\n\n## Installing\nThe easiest way to install is to download and open the\n[Installer Package](https://package-installer.glitch.me/v1/installer/OpenUPM/tv.superla.radiancehdr?registry=https%3A%2F%2Fpackage.openupm.com\u0026scope=tv.superla).\n\nIt runs a script that installs the package via a\n[scoped registry](https://docs.unity3d.com/Manual/upm-scoped.html).\n\nAfterwards, Radiance HDR for Unity is listed in the*Package Manager*\n(under *My Registries*) and can be installed and updated from there.\n\n\u003cdetails\u003e\u003csummary\u003eAlternative: Install via GIT URL\u003c/summary\u003e\nAdd Radiance HDR for Unity via Unity's Package Manager\n( Window -\u003e Package Manager ).\nClick the ➕ on the top left and choose *Add package from GIT URL*.\n\nEnter the following URL:\n`https://github.com/superla-play/RadianceHDRUnity.git#upm`\n\u003c/details\u003e\n\n---\n## Usage\n```cs\n// Make sure to include the namespace!\nusing Superla.RadianceHDR;\n\n...\n// Load the image however you like in the form of a byte array, be it from\n// streaming assets or from the web, etc.\nUnityWebRequest www = UnityWebRequest.Get(\"path/to/image.hdr\");\nwww.downloadHandler = new DownloadHandlerBuffer();\nvar asyncOp = www.SendWebRequest();\nwhile (!asyncOp.isDone)\n{\n    await Task.Yield();\n}\nbyte[] imageData = www.downloadHandler.data;\n\n// Pass the byte array to the constructor.\nRadianceHDRTexture hdr = new RadianceHDRTexture(imageData);\n\n// Retrieve the generated texture.\nTexture2D texture = hdr.texture;\n```\n\n---\n## Motivation\nDuring the course of development for other Unity-based projects,\nwe regularly used HDR images for background\nand lighting purposes in our scenes.\nUnity handles editor-time import of HDR images without hassle.\nWhile exploring options for user-customisable content,\nwe were surprised to find the engine did *not* support\nruntime loading of HDR images. We decided that needed to be changed!\n\n## Acknowlegements\nRadiance HDR for Unity was inspired by the excellent\n[three.js](https://threejs.org/) and it's\n[RGBELoader](https://github.com/mrdoob/three.js/blob/dev/examples/jsm/loaders/RGBELoader.js),\nwhich was in turn adapted from Bruce Walter's\n[C Loader](http://www.graphics.cornell.edu/~bjw/rgbe.html) for RGBE.\n\n## License\n\nCopyright (c) 2022-2024 Superla.tv, All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use files in this repository except in compliance with the License.\nYou may obtain a copy of the License at\n\n   \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n## Trademarks\n\n*Unity* is a registered trademark of [Unity Technologies](https://unity.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperla-play%2Fradiancehdrunity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperla-play%2Fradiancehdrunity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperla-play%2Fradiancehdrunity/lists"}