コード例 #1
0
ファイル: VoxelBlock.cs プロジェクト: AlyDrake/OpenCircuit
		public static bool isRenderLod(float x, float y, float z, float size, Tree control) {
			if (!control.useLod)
				return size == control.sizes[control.maxDetail];
			return getDistSquare(control.getLocalCamPosition(), new Vector3(x + 0.5f, y + 0.5f, z + 0.5f), size) >= size * size * control.getLodDetail();
		}