farclipplane and layerculldistance.

I am trying to place Unisky in a seperate layer so its always rendered,
but having some difficulty with it.

Is it possible to render a layer beyond farClipDistance with layerCullDistance()?
Or will I have to set a far clip distance and then adjust all the other layers?

function Start()
{
	camera.farClipPlane = 1000.00;
	// Setting up cull distances.
	var distances = new float[32];
	distances[10] = 100.00;	// test, works
	distances[11] = 100000.00;   // tell layer 11 (skybox) to cull ar 100 000
 	camera.layerCullDistances = distances;
}

I’ve tried this too. But it seems not to work :frowning:

No one with an idea?

My goal is to make planets visible at a greater distance than other objects, because otherwise they blob suddenly out of nowhere.
Is there a way to achieve this?

Wel I guess whe have to do it the slightly more complicated way then,
set a very far farclipplane an set closer distances for all layers (0-31) except the skybox layer in my case and a planet layer in your case.

Hmm camera.layerCulDistances does not seem to work when setting farClipPlane further then 9999

9000 should be enough
Thank you for that info.
:wink: