Rodrix3 Posted May 12, 2018 Share Posted May 12, 2018 I would like Babylon Engine to have a photorealistic sky, with procedural animated volumetric clouds, time of day with moving sun / moon, night with procedural realistic stars, nightfall and sunset with realistic lightning... ..and why not add a realistic water reflection! Something that is even better than what's found on today's AAA games. BabylonJS deserves it After lots of research, I found this amazing ShaderToy which meets all above requirements: https://www.shadertoy.com/view/ltlSWB..and I was able to successfully port it to BabylonJS after lots of testing and work. Almost.. entirely. The issue I am having is that the shader is using a noise texture as input and I cannot make BabylonJs import it without lowering it's quality (maybe related to trilinear filtering). if that could be fixed, we could have a SkyMaterial that is absolutely mind blowing. See my WIP: http://www.babylonjs-playground.com/#11GAIH#48 You will see the artifacts caused by the issue mentioned. I also did a quick animation of sun position. Everything can be parametrized, including quality and size on the shader code itself. Can anyone help me finish this implementation? @Deltakosh, I think you will LOVE this ;). Let me know what you think of this idea P.S: The output of the shader is an equirectangular image. Right now it is being projected into a sphere. V!nc3r and inteja 2 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.