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);
        }
예제 #3
0
        public void StartSubdivion()
        {
            var mesh = GPUSubdivisionSurface.Subdivide(subdivCompute, SubdivisionSurface.Weld(source, float.Epsilon, source.bounds.size.x), details, weld);

            filter.sharedMesh = mesh;
        }