Skip to content

Fit any texture into a rectangle of any size.

Notifications You must be signed in to change notification settings

positlabs/spark-fit2rect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fit textures into rectangles in Spark AR

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.

Update: there is now an option to contain the texture to the rect instead of filling

Demo on YouTube

Resources

Learn more stuff by watching my Spark AR Tutorials on YouTube!

Follow me on Instagram @positlabs and try out my effects!

Browse my open-source Spark AR repositories on Github!

Have questions? Join the Spark AR Community group on Facebook.

Donations

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.

About

Fit any texture into a rectangle of any size.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published