距离裁剪代码

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;
}

你可能感兴趣的:(代码)