示例#1
0
        public override void Bind()
        {
            //  print("hmmmss");
            transfer.BindPrimaryForm("_VertBuffer", verts);
            transfer.BindForm("_SkeletonBuffer", skeleton);


            TrailRibbonVerts v = (TrailRibbonVerts)verts;

            transfer.BindInt("_RibbonLength", () => v.length);

            TrailParticles s = (TrailParticles)skeleton;

            transfer.BindInt("_NumVertsPerHair", () => s.particlesPerTrail);

            //parallel.BindPrimaryForm("_ParticleBuffer" , particles);
            //parallel.BindForm("_VertBuffer" , verts );
//
            //parallel.BindInt( "_RibbonLength"     ,   () => v.length  );
            //parallel.BindInt( "_NumVertsPerHair"  ,   () => v.length  );

            data.BindCameraData(transfer);

            //parallel.BindFloat( "_Radius" ,  () => this.radius );
            transfer.BindFloat("_Radius", () => this.radius);
        }
示例#2
0
        public override void Bind()
        {
            TrailRibbonVerts v = (TrailRibbonVerts)verts;

            transfer.BindInt("_RibbonLength", () => v.length);

            TrailParticles s = (TrailParticles)skeleton;

            transfer.BindInt("_NumVertsPerHair", () => s.particlesPerTrail);
        }