MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ShootRayForLighting

Method ShootRayForLighting

editor/LightingDialog.cpp:778–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778void 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

Callers

nothing calls this directly

Calls 1

fvi_FindIntersectionFunction · 0.85

Tested by

no test coverage detected