PizzaLYJ 1 Posted October 17, 2016 Report Share Posted October 17, 2016 Hello everyone, I am newbie in BabylonJS. When I study the playground example of Sprite2D, I have a question about invertY setting at Texture and Sprite2D class. The texture constructor sets invertY to false at the line 5, and the Sprite2D constructor sets invertY to true at the line 11. Does it mean that player.png caches in texture like the below, so the Sprite2D constructor needs to set invertY to true? And why Texture invert a picture automatically? Thanks. Quote Link to post Share on other sites
Deltakosh 4315 Posted October 17, 2016 Report Share Posted October 17, 2016 Hello and welcome Texture constructor car invert texture on Y axis because some tools (like 3dsmax) have texture coordinates set to Y down (and not Y up like you and me would have expected) Quote Link to post Share on other sites
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.