HugoMcPhee Posted October 2, 2014 Share Posted October 2, 2014 Resizing the window when there is no post process means the views aspect ratio gets updated when the engine.resize() function is used.However resizing the window while a postprocess is enabled means the view gets stretched even while the engine.resize() function is running.The "engine.resize()" function still updates the resolution if there is a post process, since there are no stretched or blurry pixels, it's just the aspect ratio that doesn't change.Everything works if the window is resized and then the page is refreshed but it would be nice for it to update without a refresh (using the "pass" postProcess) Is there a way to update the postprocess ratio when the window is resized? PostProcess code:postProcess0 = new BABYLON.PassPostProcess("Scene copy", 1.0, camera); Quote Link to comment Share on other sites More sharing options...
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.