TRANSLUCENT
If this flag is set, the entity or particle will be translucent, so you can see through it, and it will be rendered on the transparent pass. Its transparency is determined by its alpha value.
Type:
flag
Remarks:
- Overlay textures are invisible when their transparency is below the threshold set by d3d_alpharef.
Example (lite-C):
// Fade in
set(my,TRANSLUCENT);
for (my.alpha=0; my.alpha+=5*time_step; my.alpha<100)
wait(1);
reset(my,TRANSLUCENT);
Example (C-Script):
// Fade in
my.TRANSPARENT = ON;
my.alpha = 0;
while (my.alpha < 100)
{
my.alpha += 5*time_step;
wait(1);
}
my.TRANSPARENT = OFF;
See also:
alpha, BRIGHT, OVERLAY ► latest version online