Weird: Skybox messing up a runtime calculated splatmap

Hello. We are creating a scene where the terrain is computed at runtime (a la Fractscape) and therefore the splatmap is also calculated to match the terrain.

We are getting a weird behavior in which the splatmap shows unwanted artifacts but only when the scene Skybox Material is selected through the Render Settings.

In this case we cannot use a Skybox component on the main camera because some of the objects on the scene have a real-time reflection material which does not reflect in this case.

While the problem is solved, is it possible to change the Render Settings’ Skybox Material at runtime?

Fractscape computes the splatmap at runtime and uses a skybox on the main camera without issues. I can’t imagine how the two are related in any way. :slight_smile: And yes, you can change the skybox at runtime.

–Eric

Thanks Eric

file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/Components/class-Skybox.html

According to the previous documentation there are two ways to have a Skybox:

One by adding the Skybox component to the Camera used. In this way the skybox can be changed at runtime.

And second by selecting a Skybox Material on the Render Settings. This is the one we want to change at runtime but don’t know how.

Change RenderSettings.skybox.

–Eric

No way it was that simple!!! :shock:

Thanks Eric