X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=audio.h;h=43adf052e289077ef860e1ef8ba82f1452b3d1b8;hb=147ecb98ce2d6a2b24b0d86436913a46888dea84;hp=9622c50a81eee572bb52a082339f45668d4e15b0;hpb=23a1be081ab9e378cba49a23b8ed4d4082b580c1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/audio.h b/audio.h index 9622c50..43adf05 100644 --- a/audio.h +++ b/audio.h @@ -266,11 +266,14 @@ VG_STATIC void audio_sample_occlusion( v3f origin ) { d += contact.dist; +#if 0 vg_line( origin, contact.pos, 0xff0000ff ); vg_line_pt3( contact.pos, 0.1f, 0xff0000ff ); if( lv ) vg_line( contact.pos, last, 0xffffffff ); +#endif + v3_copy( contact.pos, last ); lv = 1; } @@ -278,7 +281,10 @@ VG_STATIC void audio_sample_occlusion( v3f origin ) { v3f p1; v3_muladds( origin, dir, sample_dist, p1 ); + +#if 0 vg_line( origin, p1, 0xffcccccc ); +#endif d += sample_dist; lv = 0; @@ -327,8 +333,10 @@ VG_STATIC enum audio_sprite_type audio_sample_sprite_random( v3f origin, } else { +#if 0 vg_line( pos, contact.pos, 0xff0000ff ); vg_line_pt3( contact.pos, 0.3f, 0xff0000ff ); +#endif return k_audio_sprite_type_none; } }