Open source remastering of the Freespace 2 engine
shadows.h File Reference
#include "globalincs/pstypes.h"
#include "object/object.h"

Go to the source code of this file.


struct  light_frustum_info




void shadows_construct_light_frustum (vec3d *min_out, vec3d *max_out, vec3d light_vec, matrix *orient, vec3d *pos, float fov, float aspect, float z_near, float z_far)
bool shadows_obj_in_frustum (object *objp, vec3d *min, vec3d *max, matrix *light_orient)
void shadows_render_all (float fov, matrix *eye_orient, vec3d *eye_pos)
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 ()


matrix4 Shadow_view_matrix
matrix4 Shadow_proj_matrix [MAX_SHADOW_CASCADES]
float Shadow_cascade_distances [MAX_SHADOW_CASCADES]

Macro Definition Documentation


Definition at line 16 of file shadows.h.

Function Documentation

void shadows_construct_light_frustum ( vec3d min_out,
vec3d max_out,
vec3d  light_vec,
matrix orient,
vec3d pos,
float  fov,
float  aspect,
float  z_near,
float  z_far 
void shadows_end_render ( )

Definition at line 386 of file shadows.cpp.

bool shadows_obj_in_frustum ( object objp,
vec3d min,
vec3d max,
matrix light_orient 
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

float Shadow_cascade_distances[MAX_SHADOW_CASCADES]

Definition at line 26 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.