| 776 | } |
| 777 | |
| 778 | void CLightingDialog::ShootRayForLighting(vector *dest, vector *from, vector *to, int startseg) { |
| 779 | fvi_info hit_info; |
| 780 | fvi_query fq; |
| 781 | |
| 782 | // shoot a ray from the light position to the current vertex |
| 783 | fq.p0 = from; |
| 784 | fq.p1 = to; |
| 785 | fq.startroom = startseg; |
| 786 | |
| 787 | fq.rad = 0.0f; |
| 788 | fq.flags = FQ_CHECK_OBJS | FQ_IGNORE_NON_LIGHTMAP_OBJECTS | FQ_NO_RELINK | FQ_IGNORE_RENDER_THROUGH_PORTALS; |
| 789 | fq.thisobjnum = -1; |
| 790 | fq.ignore_obj_list = NULL; |
| 791 | |
| 792 | fvi_FindIntersection(&fq, &hit_info); |
| 793 | |
| 794 | *dest = hit_info.hit_pnt; |
| 795 | } |
| 796 | |
| 797 | #define MAX_VOLUMETRIC_DISTANCE 5000 |
| 798 |
nothing calls this directly
no test coverage detected