void Start() { var filter = GetComponent <MeshFilter>(); var source = filter.mesh; var mesh = GPUSubdivisionSurface.Subdivide(subdivCompute, SubdivisionSurface.Weld(source, float.Epsilon, source.bounds.size.x), details, weld); filter.sharedMesh = mesh; }
void Start() { var filter = GetComponent <MeshFilter>(); var source = filter.mesh; var model = SubdivisionSurface.Subdivide(SubdivisionSurface.Weld(source, float.Epsilon, source.bounds.size.x), details); Setup(filter, source, model); }
public void StartSubdivion() { var mesh = GPUSubdivisionSurface.Subdivide(subdivCompute, SubdivisionSurface.Weld(source, float.Epsilon, source.bounds.size.x), details, weld); filter.sharedMesh = mesh; }