GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


A Paste by Anonymous
1
 
datablock ParticleData(NewParticleData)
{
   textureName          = "~/data/shapes/particles/smoke";

   // misc fields.. you can write these here, or let the editor write over em
   //dragCoefficient     = 0.0;
   //gravityCoefficient   = -1.1;  // rises
   //inheritedVelFactor   = 0.3;

   //lifetimeMS           = 400;   // Time in ms
   //lifetimeVarianceMS   = 100;    // ...more or less

   //useInvAlpha = false;
   //spinRandomMin = -30.0;
   //spinRando/mMax = 30.0;

   //colors[0]     = "0.8 0.7 0.7 0.7";
   //colors[1]     = "1 1 1 0.5";
   //colors[2]     = "0 0 0 0";

   //sizes[0]      = 0.1;
   //sizes[1]      = 0.15;
   //sizes[2]      = 0.3;

   //times[0]      = 0.0;
   //times[1]      = 0.3;
   //times[2]      = 1.0;
};

datablock ParticleEmitterData(NewParticleEffect)
{
   particles = NewParticleData;
    
   // misc fields.. you can write these here, or let the editor write over em
   //ejectionPeriodMS = 10;
   //periodVarianceMS = 5;

   //ejectionVelocity = 0.25;
   //velocityVariance = 0.10;

   //thetaMin         = 0.0;
   //thetaMax         = 90.0;
};