fenomas Posted March 12, 2015 Share Posted March 12, 2015 DK, It would be really useful if Sprite instances had width/height properties, rather than just a size. I suppose this would mean an extra float being passed to the shader. Would this be feasible? jerome 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 12, 2015 Share Posted March 12, 2015 Everything is feasible and I will love to do this for you Can you just let me know what you want to achieve? Quote Link to comment Share on other sites More sharing options...
fenomas Posted March 12, 2015 Author Share Posted March 12, 2015 Sure! What I'd like to do is change a Sprite instance's width/height independently:var sprite = new BABYLON.Sprite('s',mgr)sprite.width = 1sprite.height = 2// instead of: sprite.size=1Does that make sense? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 12, 2015 Share Posted March 12, 2015 Sure thing!! I'll add it to my backlog for 2.1 fenomas 1 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.