gryff Posted April 3, 2014 Share Posted April 3, 2014 I ran across this by accident while changing values in a BABYLON.Vector3() and not noticing what I was actually doing. Best way to describe it is to say take Tutorial 15 - The Skybox and Fog tut. Change this line :skyboxMaterial.backFaceCulling = false;toskyboxMaterial.backFaceCulling = true;and then add this lineskybox.scaling = new BABYLON.Vector3(-1, 1, 1);This additional line flips the box faces that are visualised to the interior ones. Now it does appear to flip the skybox textures along the x-axis, but you can compensate for that by fliping the textures in a graphics program. A quirk or undocumented bug - or perhaps undocumented feature? ;-) cheers, gryff Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 3, 2014 Share Posted April 3, 2014 This is definitely a quirk because you are allowed to scale negatively even if it produces weird result 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.