Beispiel #1
0
        public override void Bind()
        {
            InstancedMeshVerts v = GetComponent <InstancedMeshVerts>();

            toBind.BindForm("_BaseBuffer", v.verts);
            toBind.BindInt("_VertsPerMesh", () => v.vertsPerMesh);
        }
Beispiel #2
0
        // Use this for initialization
        public override void Bind()
        {
            InstancedMeshVerts v = GetComponent <InstancedMeshVerts>();

            toBind.BindForm("_SkeletonBuffer", particles);
            toBind.BindForm("_BaseBuffer", v.verts);

            toBind.BindFloat("_Scale", () => this.scale);
            toBind.BindInt("_VertsPerMesh", () => v.vertsPerMesh);
        }