距离裁剪代码

function Start ()

{
var distances = new float[32];
// Set up layer 10 to cull at 15 meters distance.
// All other layers use the far clip plane distance.
distances[8] = 5;
distances[9] = 2;
camera.layerCullDistances = distances;
}

原文地址:https://www.cnblogs.com/softimagewht/p/1977238.html