collision layers
[carveJwlIkooP6JGAAIwe30JlM.git] / world_render.c
index 87f307ec8bdd1bc91e5a503697f53416a2f5913b..0b5b399303bf3039db9d70928c1631ed14509984 100644 (file)
@@ -432,6 +432,7 @@ void world_render_challenges( world_instance *world, struct world_pass *pass,
       if( type != k_ent_challenge ) continue;
 
       ent_challenge *challenge = mdl_arritm(&world->ent_challenge,index);
+      if( challenge->flags & k_ent_challenge_hidden ) continue;
 
       f32 dist = v3_dist( challenge->transform.co, pos ) * (1.0f/radius),
           scale = vg_smoothstepf( vg_clampf( 10.0f-dist*10.0f, 0.0f,1.0f ) );