I have this blue color plane that is on top of another plane that I want to make into a lake. Probably using the water material via code as seen in the example playground from the documentation is the way to go but how do I actually use it on my blue plane ?
In your code, you have water = new WaterMaterial("water", scene);.
I think you are missing the BABYLON part,
so water = new BABYLON.WaterMaterial("water", scene);
also, there is a waterbump texture. called waterbump.png
and, if you want skybox reflection, just repeat your line water.addToRenderList(ground); but change ground to skybox.
Naaah it’s nothing special just trying to learn what I can do and everything seems so hard from good code structure to how I handle the asset pipeline.
But I need to complete it. At least I found so many good low poly assets from https://quaternius.itch.io/ who is an awesome dude creating awesome art for free !
Some of the weapons and enemies are animated by the creator, I have no skills in 3D designing,animating all that so I was fortunate for the enemy part.
Forgot to update. It turns out I had messed the order of the skybox’s creation so it wasn’t actually passed in the addtorenderList function. Also my skybox is not that much reflect in the water but it’s clearly there. I have tried with the TropicalSunyOne from the Playround’s repo and it was looking far better.
So I guess it depends on the colors and whatnot of the skybox.