FunFetched Posted July 19, 2017 Share Posted July 19, 2017 BabylonJS 3.0 introduces an "issue" where fog is applied with a falloff aligned with the screen plane when using an orthographic camera. This wasn't the case in 2.5. In the playground example below, what was a completely black square in 2.5 displays a red gradient starting from the center in 3.0. https://www.babylonjs-playground.com/#UIZRVD Was this intentional? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 We introduced a falloff for fog in 3.0 to make it less "squarish". The impact on orthographic camera is...interesting Quote Link to comment Share on other sites More sharing options...
FunFetched Posted July 20, 2017 Author Share Posted July 20, 2017 It is indeed! Wasn't sure what was going on with my UI camera until I realized that it was fading to my fog color. Easy enough to get around with fogEnabled/applyFog flags, but I thought it was worth a mention. GameMonetize 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.