This is a follow on to a prior post that was locked. Just wanted to provide a followup.
The solution from that post had no effect on my situation, where water paints black in the water feature sample.
Still don’t know the root cause, but do think it is in the urhosharp implementation, and not related to urho3d engine specifically.
Here’s how to get clear water in that feature sample …
In the water feature sample, if the waterMat is changed from TextureUnit.Diffuse to TextureUnit.Environment, and both reflectionplane and clippplane are commented out, then UWP water sample paints water clear, as shown:
With those same changes, running on otherwise working platforms (opengl) will cause the water to reflect the environment as if it is a mirror. Very different behavior from the UWP behavior on D3D11 which isn’t showing the environment at all.
The water painting clear for UWP uses the nuget download of urhosharp, which uses a slightly modified urho3d 1.7 release, which doesn’t have the bug fix for #2232 in it.
I’m not planning to do more with this, I’ve exceeded my experience level on what to do or how to approach this to find the underlying cause.
But if the goal is clear water … this workaround provides it on UWP.