diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2023-09-27 20:03:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-27 11:03:11 -0700 |
| commit | 02dc7fc7af3b39e44b9b030235f1dd66e7644efe (patch) | |
| tree | a2dd820938746fa8ca56384f5919b679def35cf0 /src/code/m_lights.c | |
| parent | 4ba08394238a50c9dd5c049a80cb6ae2c04da481 (diff) | |
m_lib OK (#103)
* m_lib OK
* fixes
* rename segmented2virtual macro
Diffstat (limited to 'src/code/m_lights.c')
| -rw-r--r-- | src/code/m_lights.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/code/m_lights.c b/src/code/m_lights.c index 664d53b..8de578a 100644 --- a/src/code/m_lights.c +++ b/src/code/m_lights.c @@ -92,7 +92,7 @@ Light* LightsN_new_diffuse(LightsN* lights) { return &lights->lights.l[lights->diffuse_count++]; } -void LightsN__point_proc(LightsN* lights, LightParams* lightInfo, Vec3f* point) { +void LightsN__point_proc(LightsN* lights, LightParams* lightInfo, xyz_t* point) { f32 xdiff; f32 ydiff; f32 zdiff; @@ -130,7 +130,7 @@ void LightsN__point_proc(LightsN* lights, LightParams* lightInfo, Vec3f* point) } } -void LightsN__P_point_proc(LightsN* lights, LightParams* lightInfo, UNUSED Vec3f* pos) { +void LightsN__P_point_proc(LightsN* lights, LightParams* lightInfo, UNUSED xyz_t* pos) { if (lightInfo->point.radius > 0) { Light* light = LightsN_new_diffuse(lights); @@ -164,7 +164,7 @@ void LightsN__P_point_proc(LightsN* lights, LightParams* lightInfo, UNUSED Vec3f } } -void LightsN__diffuse_proc(LightsN* lights, LightParams* lightInfo, UNUSED Vec3f* pos) { +void LightsN__diffuse_proc(LightsN* lights, LightParams* lightInfo, UNUSED xyz_t* pos) { Light* light = LightsN_new_diffuse(lights); if (light != NULL) { @@ -177,7 +177,7 @@ void LightsN__diffuse_proc(LightsN* lights, LightParams* lightInfo, UNUSED Vec3f } } -void LightsN_list_check(LightsN* lights, LightNode* node, Vec3f* pos) { +void LightsN_list_check(LightsN* lights, LightNode* node, xyz_t* pos) { static light_point_proc poslight_type_proc[] = { LightsN__point_proc, LightsN__diffuse_proc, |
