V!nc3r Posted April 28, 2017 Share Posted April 28, 2017 I use the waterMaterial. Is it possible to have a skybox used in water reflection, but which is not visible to camera ? (I want a color plain background). Erf, by writing this post I found a solution I still submit topic in case someone want find answer one day : You just have to create another smaller skybox, and don't push it to reflection renderList... http://www.babylonjs-playground.com/#1SLLOJ#275 Maybe more optimised solution ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 28, 2017 Share Posted April 28, 2017 Like this one You could perhaps optimize a bit by giving a mesh.layerMask incompatible with camera.layerMask, so your bigger skybox will only be rendered in the water shader V!nc3r 1 Quote Link to comment Share on other sites More sharing options...
luan_ngo Posted August 25, 2018 Share Posted August 25, 2018 Are there any other ways to do this? I'd like to have a light fog in a scene, but the fog blocks out the skybox reflection in the water. Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted August 26, 2018 Author Share Posted August 26, 2018 Is it something like that you want: http://www.babylonjs-playground.com/#1SLLOJ#508 ? (jump to the end: all is reflected, but skybox is excluded from the camera layer, as Deltakosh suggest above) Quote Link to comment Share on other sites More sharing options...
luan_ngo Posted August 26, 2018 Share Posted August 26, 2018 10 hours ago, V!nc3r said: Is it something like that you want: http://www.babylonjs-playground.com/#1SLLOJ#508 ? (jump to the end: all is reflected, but skybox is excluded from the camera layer, as Deltakosh suggest above) That's exactly it. Thank you! 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.