#include <stdlib.h>#include <string.h>#include "inferno.h"#include "segment.h"#include "error.h"#include "mono.h"#include "render.h"#include "game.h"#include "vclip.h"#include "lighting.h"#include "3d.h"#include "laser.h"#include "timer.h"#include "player.h"#include "weapon.h"#include "powerup.h"Defines | |
| #define | FLASH_LEN_FIXED_SECONDS (F1_0/3) |
| #define | FLASH_SCALE (3*F1_0/FLASH_LEN_FIXED_SECONDS) |
| #define | LIGHT_RATE i2f(4) |
Functions | |
| void | apply_light (fix obj_intensity, int obj_seg, vms_vector *obj_pos, int n_render_vertices, short *render_vertices) |
| void | cast_muzzle_flash_light (int n_render_vertices, short *render_vertices) |
| void | set_dynamic_light (void) |
| fix | compute_headlight_light (vms_vector *point, fix face_light) |
| fix | compute_seg_dynamic_light (int segnum) |
| fix | compute_object_light (object *obj, vms_vector *rotated_pnt) |
Variables | |
| fix | Beam_brightness = (F1_0/2) |
| int | use_beam |
| int | Do_dynamic_light = 1 |
| fix | Dynamic_light [MAX_VERTICES] |
| fix | Obj_light_xlate [16] |
| fix | object_light [MAX_OBJECTS] |
| int | object_id [MAX_OBJECTS] |
| object * | old_viewer |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value:
{0x1234, 0x3321, 0x2468, 0x1735,
0x0123, 0x19af, 0x3f03, 0x232a,
0x2123, 0x39af, 0x0f03, 0x132a,
0x3123, 0x29af, 0x1f03, 0x032a}
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.6