Ejemplo n.º 1
0
        public override void Bind()
        {
            TubeVerts v = (TubeVerts)verts;
            Hair      s = (Hair)skeleton;

            transfer.BindInt("_TubeLength", () => v.length);
            transfer.BindInt("_TubeWidth", () => v.width);
            transfer.BindInt("_NumVertsPerHair", () => s.numVertsPerHair);
        }
Ejemplo n.º 2
0
 public override void SetCount()
 {
     //print( toIndex );
     if (toIndex == null)
     {
         toIndex = GetComponent <Form>();
     }
     verts    = (TubeVerts)toIndex;
     numTubes = verts.numTubes;
     width    = verts.width;
     length   = verts.length;
     count    = numTubes * width * (length - 1) * 3 * 2;
 }