Tchouky Posted June 10, 2002 Share Posted June 10, 2002 This struct is used for the saber trail..... with this effect the white and colored trail is displayed... but the struct is pretty complicated ... typedef struct { vec3_t origin; // very specifc case, we can modulate the color and the alpha vec3_t rgb; vec3_t destrgb; vec3_t curRGB; float alpha; float destAlpha; float curAlpha; // this is a very specific case thing...allow interpolating the st coords so we can map the texture // properly as this segement progresses through it's life float ST[2]; float destST[2]; float curST[2]; } effectTrailVertStruct_t; well my questions are : what does ST mean ,why is it 2 dimension ? and ST destination ? why does the destrgb and currgb aren't used ? as well the curst is not used ... thx ! if you can't help me i ll have to figure out all this by myself i m sure i can do it (takes time..) but any help will be apreciated... Link to comment Share on other sites More sharing options...
Hell Raiser Posted June 10, 2002 Share Posted June 10, 2002 Obviously ST means Saber Trail. Also, judging by the comments, the 3 floats are Texture Coordinates so that the saber "fan" texture is rendered properly no matter how big the trail is. Link to comment Share on other sites More sharing options...
Tchouky Posted June 10, 2002 Author Share Posted June 10, 2002 Originally posted by Hell Raiser Obviously ST means Saber Trail. Also, judging by the comments, the 3 floats are Texture Coordinates so that the saber "fan" texture is rendered properly no matter how big the trail is. yes ST should mean saber trail and the reals[2] are not coordinates.... they are something like alpha value.... but i don't know what wich ST represent. and they are also 4 trails .... [0] -> [3] wich one represent wich trail displayed on the screen.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.