├── .github └── FUNDING.yml ├── README.md ├── fit2rect.jpg ├── patches └── Fit2Rect.arp ├── screenshot.jpg └── spark-fit2rect-v1.1.141.arproj /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: positlabs 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Fit textures into rectangles in Spark AR 2 | 3 | This utility patch will make your texture cover the entire rectangle, without any distortion. You can also set the pivot point to control the alignment of the texture. See the demo video for more information. 4 | 5 | Update: there is now an option to contain the texture to the rect instead of filling 6 | 7 | [Demo on YouTube](https://youtu.be/tX2uyytflM4) 8 | 9 | [![](./fit2rect.jpg)](https://youtu.be/tX2uyytflM4) 10 | 11 | 12 | ## Resources 13 | 14 | Learn more stuff by watching my [Spark AR Tutorials on YouTube!](https://www.youtube.com/playlist?list=PLAZp2Vi7Gfspzyla4RrCO6BzVzYW7Lnb-) 15 | 16 | Follow me on Instagram [@positlabs](https://instagram.com/positlabs) and try out my effects! 17 | 18 | Browse my open-source [Spark AR repositories on Github!](https://github.com/search?q=user%3Apositlabs+spark) 19 | 20 | Have questions? Join the [Spark AR Community](https://www.facebook.com/groups/SparkARcommunity/) group on Facebook. 21 | 22 | 23 | ## Donations 24 | 25 | If you used this in client projects, or simply enjoyed making effects with my open-source projects, please consider a donation or sponsorship. One-time donations can be made with PayPal. Subscriptions can be through PayPal or [Github Sponsorships](https://github.com/sponsors/positlabs). 26 | 27 | [![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YGS69CHAE9EQC&source=url) 28 | -------------------------------------------------------------------------------- /fit2rect.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-fit2rect/58352622f1bf05ee978167e36c2d2ab649f2ed25/fit2rect.jpg -------------------------------------------------------------------------------- /patches/Fit2Rect.arp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-fit2rect/58352622f1bf05ee978167e36c2d2ab649f2ed25/patches/Fit2Rect.arp -------------------------------------------------------------------------------- /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-fit2rect/58352622f1bf05ee978167e36c2d2ab649f2ed25/screenshot.jpg -------------------------------------------------------------------------------- /spark-fit2rect-v1.1.141.arproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/positlabs/spark-fit2rect/58352622f1bf05ee978167e36c2d2ab649f2ed25/spark-fit2rect-v1.1.141.arproj --------------------------------------------------------------------------------