FS2_Open
Open source remastering of the Freespace 2 engine
shadows.cpp File Reference
#include "asteroid/asteroid.h"
#include "cmdline/cmdline.h"
#include "debris/debris.h"
#include "graphics/gropengldraw.h"
#include "graphics/gropengltnl.h"
#include "graphics/shadows.h"
#include "lighting/lighting.h"
#include "math/vecmat.h"
#include "model/model.h"
#include "model/modelrender.h"
#include "render/3d.h"

Go to the source code of this file.

Functions

bool shadows_obj_in_frustum (object *objp, matrix *light_orient, vec3d *min, vec3d *max)
 
void shadows_construct_light_proj (light_frustum_info *shadow_data)
 
void shadows_debug_show_frustum (matrix *orient, vec3d *pos, float fov, float aspect, float z_near, float z_far)
 
void shadows_construct_light_frustum (light_frustum_info *shadow_data, matrix *light_matrix, matrix *orient, vec3d *pos, float fov, float aspect, float z_near, float z_far)
 
matrix shadows_start_render (matrix *eye_orient, vec3d *eye_pos, float fov, float aspect, float veryneardist, float neardist, float middist, float fardist)
 
void shadows_end_render ()
 
void shadows_render_all (float fov, matrix *eye_orient, vec3d *eye_pos)
 

Variables

vec3d check_offsets [8]
 
matrix4 Shadow_view_matrix
 
matrix4 Shadow_proj_matrix [MAX_SHADOW_CASCADES]
 
float Shadow_cascade_distances [MAX_SHADOW_CASCADES]
 
light_frustum_info Shadow_frustums [MAX_SHADOW_CASCADES]
 

Function Documentation

void shadows_construct_light_frustum ( light_frustum_info shadow_data,
matrix light_matrix,
matrix orient,
vec3d pos,
float  fov,
float  aspect,
float  z_near,
float  z_far 
)

Definition at line 190 of file shadows.cpp.

void shadows_construct_light_proj ( light_frustum_info shadow_data)

Definition at line 48 of file shadows.cpp.

void shadows_debug_show_frustum ( matrix orient,
vec3d pos,
float  fov,
float  aspect,
float  z_near,
float  z_far 
)

Definition at line 61 of file shadows.cpp.

void shadows_end_render ( )

Definition at line 386 of file shadows.cpp.

bool shadows_obj_in_frustum ( object objp,
matrix light_orient,
vec3d min,
vec3d max 
)

Definition at line 30 of file shadows.cpp.

void shadows_render_all ( float  fov,
matrix eye_orient,
vec3d eye_pos 
)

Definition at line 391 of file shadows.cpp.

matrix shadows_start_render ( matrix eye_orient,
vec3d eye_pos,
float  fov,
float  aspect,
float  veryneardist,
float  neardist,
float  middist,
float  fardist 
)

Definition at line 349 of file shadows.cpp.

Variable Documentation

vec3d check_offsets[8]

Definition at line 112 of file objectsort.cpp.

float Shadow_cascade_distances[MAX_SHADOW_CASCADES]

Definition at line 26 of file shadows.cpp.

Definition at line 28 of file shadows.cpp.

matrix4 Shadow_proj_matrix[MAX_SHADOW_CASCADES]

Definition at line 25 of file shadows.cpp.

matrix4 Shadow_view_matrix

Definition at line 24 of file shadows.cpp.