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); }
public override void Bind() { TrailRibbonVerts v = (TrailRibbonVerts)verts; transfer.BindInt("_RibbonLength", () => v.length); TrailParticles s = (TrailParticles)skeleton; transfer.BindInt("_NumVertsPerHair", () => s.particlesPerTrail); }
public override void Bind() { transfer.BindFloat("_ModelLength", () => meshLength); transfer.BindInt("_NumVertsPerMesh", () => baseVerts.count); TrailParticles s = (TrailParticles)skeleton; transfer.BindInt("_NumVertsPerTrail", () => s.particlesPerTrail); transfer.BindInt("_Direction", () => direction); transfer.BindForm("_BaseBuffer", baseVerts); }
public override void Bind() { life.BindForm("_HeadBuffer", head); TrailParticles tp = (TrailParticles)form; life.BindInt("_ParticlesPerTrail", () => tp.particlesPerTrail); transport.BindPrimaryForm("_ParticleBuffer", head); transport.BindForm("_VertBuffer", form); transport.BindInt("_NumVertsPerHair", () => tp.particlesPerTrail); data.BindCameraData(transport); }