{"id":13786462,"url":"https://github.com/sinbad/SpriteRecolourUnity","last_synced_at":"2025-05-11T22:31:12.910Z","repository":{"id":139584136,"uuid":"73409829","full_name":"sinbad/SpriteRecolourUnity","owner":"sinbad","description":"Demo project for spriterecolour in Unity","archived":true,"fork":false,"pushed_at":"2016-11-11T15:22:21.000Z","size":736,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T19:09:55.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/sinbad.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}},"created_at":"2016-11-10T18:30:59.000Z","updated_at":"2024-03-27T17:01:31.000Z","dependencies_parsed_at":"2024-01-17T05:49:24.755Z","dependency_job_id":"5783673b-7937-4c47-9acd-d92506480c82","html_url":"https://github.com/sinbad/SpriteRecolourUnity","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/sinbad%2FSpriteRecolourUnity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSpriteRecolourUnity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSpriteRecolourUnity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FSpriteRecolourUnity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinbad","download_url":"https://codeload.github.com/sinbad/SpriteRecolourUnity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225101296,"owners_count":17421074,"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-03T19:01:16.236Z","updated_at":"2024-11-17T22:32:13.049Z","avatar_url":"https://github.com/sinbad.png","language":"C#","readme":"# SpriteRecolour Unity demo project\n\nThis is a demonstration Unity project for [SpriteRecolour](https://github.com/sinbad/spriterecolour)\ncommand line tool.\n\n![Example](SpriteRecolourAnimated.gif)\n\nFrom any sprite, a 'reference' sprite is generated which indexes either a\npalette texture, or an array of shader parameters, either of which can then be\nswapped to recolour the sprites without any additional copies of the sprite\ntexture.\n\nThis demo has both examples of using 1D palette textures and shader parameters.\nThe reference sprite is different in each case because for the palette\ntexture the UV ranges from 0-1 regardless of palette size (with the texture\nshrinking), while with shader parameters the indexing is more direct. You\ncan make either work with one reference sprite with some additional calculations\nin the shader, but usually you would pick one approach or the other to make it\nsimpler, hence why I've shown them as separate examples.\n\nThe shader parameter version dynamically lerps between two palettes; you could\ndo that with the palette texture too by updating the texture in code (it's small)\nbut the example fits parameters better.\n\nHope it's useful!\n\n# Attribution\n\nThanks to Stephen Challener (Redshrike) and Zi Ye, for the [Sinbad sprite](http://opengameart.org/content/four-characters-my-lpc-entries), figured it was appropriate since it's the\nmascot for an engine I previously created, [Ogre3D](http://ogre3d.org)\n\n# License (MIT)\n\nCopyright © 2016 Steve Streeting\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","funding_links":[],"categories":["Sprite"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinbad%2FSpriteRecolourUnity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinbad%2FSpriteRecolourUnity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinbad%2FSpriteRecolourUnity/lists"}