Bugfix, plumiferos report:

Strand texture coords (static particles) did not precisely go from -1 to 1
when random lifetime was used.
This commit is contained in:
2007-04-25 16:12:34 +00:00
parent 3f153c25be
commit 7f9c872169

View File

@@ -1455,7 +1455,13 @@ static void render_static_particle_system(Render *re, Object *ob, PartEff *paf)
if(har) har->lay= ob->lay;
}
else { /* generate pixel sized hair strand */
static_particle_strand(re, ob, ma, orco, vec, vec1, (ctime-pa->time)/(mtime-pa->time), first);
float strandco= 1.0f;
/* last strand, texco to end */
if(ctime + paf->staticstep < mtime)
strandco= (ctime-pa->time)/(mtime-pa->time);
static_particle_strand(re, ob, ma, orco, vec, vec1, strandco, first);
}
}