blob: 50e6031beec150c99f0020290faf3c05bb2d4e9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System.Collections.Generic;
using UnityEngine;
namespace NGS.MeshFusionPro;
public class MeshCombinerSimpleLW : MeshCombinerBase
{
private MeshCombinerSimpleSTD _stdCombiner;
public MeshCombinerSimpleLW()
{
_stdCombiner = new MeshCombinerSimpleSTD();
}
protected override void CombineInternal(Mesh mesh, IList<MeshCombineInfo> infos)
{
VertexBufferUtil.ToStandardBuffer(mesh);
try
{
_stdCombiner.Combine(mesh, infos);
VertexBufferUtil.ToLightweightBuffer(mesh);
}
catch
{
VertexBufferUtil.ToLightweightBuffer(mesh);
throw;
}
}
}
|