layerCullDistance and rotation
problem: have large urban map and it has a "playable" area separated by a large wall. The concept is if you get close enough to the wall you will see the transparent material on the mesh. So i set up layers and bluh bluh bluh anyway... the layer cull distance seems to break when rotating, when i set up layereCullSpherical, they no longer show up at all. my guess is they are too large, considering other objects do show up when they are small cubes sized cubes;
void Start()
{
Camera.main.layerCullSpherical = true;
float[] layers = new float[32];
layers[8] = 50f;
Camera.main.layerCullDistances = layers;
}
Your answer
Follow this Question
Related Questions
Using the Distance Bands from the CullingGroup API correctly 1 Answer
Culling and a sphere 1 Answer
CullScriptable CreateSharedRenderScene eats up CPU 0 Answers
Rotate Object based on distance to destination 1 Answer
Scale sprite-animated character in 2D to fake distance (Monkey Island 3 style) 0 Answers