CLIP1 |
CLIP0 |
Geclipped beim Bereich von |
OFF |
OFF |
100% (default) |
OFF |
ON |
75% |
ON |
OFF |
50% |
ON |
ON |
25% |
// Place a grass sprite that is clipped away at 50% clip range action grass()
{
vec_scale(my.scale_x,0.1+random(0.1)); // scale at random size
set(my,PASSABLE | TRANSLUCENT);
my.alpha = 75; // grass is slightly transparent
my.eflags |= CLIP1; // clip away at 50% LOD range
my.emask &= ~DYNAMIC; // make entity static for better frame rate
}