- Home /
Multiple, distinct, independent instances of Unity WaterProDaytime
I'm creating a scene in which I need multiple, distinct, and independent planes with Unity's WaterProDaytime applied (material + script). Importantly, I need to be able to control the settings for each plane's water separately (e.g. setting some to Simple, some Reflective, some Refractive, as well as differing parameters for values like distortion, wave speed, wave size, etc. - that is, across both the material and the script). I'm applying separate materials to each plane (i.e. I duplicated the original WaterProDaytime material) so that they're not all using the same material.
When I do this, I'm getting a behaviour where depending on which planes are in view of the camera, the texture rendered to the planes in view will switch around (I can't work out as yet the logic behind it). For example, if I'm looking at a Reflective water plane, but the camera can also see a Simple water plane, it will render the Reflective water as Simple water.
The problem seems to be with the script as far as I can tell, but on my first examinations of the code, I'm not able to see it.
Anyone have any thoughts on how to solve this "multiple, distinct, independent water textures" problem? Unsurprisingly, it's central to the project I'm working on.
Your answer
Follow this Question
Related Questions
object with alpha texture disappears at horizon line 2 Answers
Unity 5: Water4 4 Answers
Realistic Water effects 1 Answer
need water!!! 1 Answer