ozRocker Posted July 5, 2017 Share Posted July 5, 2017 I've noticed when scaling textures with uScale and vScale it does it from the corner. Is there a way to scale from the centre, so it really looks like you're zooming in? Here's a playground to demonstrate how it scales from the corner: http://www.babylonjs-playground.com/#1S3OGI#6 Quote Link to comment Share on other sites More sharing options...
adam Posted July 5, 2017 Share Posted July 5, 2017 http://www.babylonjs-playground.com/#1S3OGI#7 Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 5, 2017 Author Share Posted July 5, 2017 18 minutes ago, adam said: http://www.babylonjs-playground.com/#1S3OGI#7 It works perfectly there. I'm trying to apply it to my decal but the Offset values make it go crazy. Hmm...will have to investigate further. Maybe my decalSize of 3 is throwing it off. Quote Link to comment Share on other sites More sharing options...
ozRocker Posted July 11, 2017 Author Share Posted July 11, 2017 ok this works, I just make sure to add the offset values. Thanks @adam ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.