- Home /
Render Cubemap with Water Assets in scene
I'm trying to use Cubemap reflections on objects in my scene, with a terrain inside.
I tried the two Cubemap Rendering scripts found here: https://docs.unity3d.com/Documentation/ScriptReference/Camera.RenderToCubemap.html
But when I add water - Water (Pro) from the Standard Assets - to the scene the Cubemaps does not show all of the terrain, instead it shows the water. What is not showing of the terrain is the flat ground, but the "rock parts" of the terrain, that is sticking up much higher, is rendered. It seems to me that where there are "water polygons" being overlapped with "terrain polygons" - from the cubemap-rendering-cameras point of view - the water polygons are getting higher priority and are being rendered instead of the terrain, even though the terrain is actually supposed to hide the water.
Is there a way to get around this?