Open source remastering of the Freespace 2 engine
gropenglpostprocessing.cpp File Reference

Go to the source code of this file.


struct  post_effect_t


typedef struct post_effect_t post_effect_t


int opengl_check_framebuffer ()
void gr_opengl_post_process_begin ()
void recompile_fxaa_shader ()
void opengl_post_pass_fxaa ()
bool stars_sun_has_glare (int index)
void gr_opengl_post_process_end ()
void get_post_process_effect_names (SCP_vector< SCP_string > &names)
void opengl_post_init_uniforms (int flags)
void gr_opengl_post_process_set_effect (const char *name, int value)
void gr_opengl_post_process_set_defaults ()
void gr_opengl_post_process_save_zbuffer ()
void opengl_post_shader_header (SCP_stringstream &sflags, shader_type shader_t, int flags)
bool opengl_post_init_shaders ()
void opengl_post_process_init ()
void opengl_post_process_shutdown ()


bool PostProcessing_override
size_t fxaa_shader_id
bool fxaa_unavailable = false
int Fxaa_preset_last_frame
bool zbuffer_saved = false
bool ls_on = false
bool ls_force_off = false
float ls_density = 0.5f
float ls_weight = 0.02f
float ls_falloff = 1.0f
float ls_intensity = 0.5f
float ls_cpintensity = 0.5f * 50 * 0.02f
int ls_samplenum = 50
SCP_vector< post_effect_tPost_effects
bool Post_in_frame = false
GLuint Shadow_map_depth_texture
GLuint Scene_depth_texture
GLuint Cockpit_depth_texture
GLuint Scene_position_texture
GLuint Scene_normal_texture
GLuint Scene_specular_texture
float Sun_spot

Typedef Documentation

typedef struct post_effect_t post_effect_t

Function Documentation

void get_post_process_effect_names ( SCP_vector< SCP_string > &  names)

Definition at line 474 of file gropenglpostprocessing.cpp.

void gr_opengl_post_process_begin ( )

Definition at line 158 of file gropenglpostprocessing.cpp.

void gr_opengl_post_process_end ( )

Definition at line 256 of file gropenglpostprocessing.cpp.

void gr_opengl_post_process_save_zbuffer ( )

Definition at line 548 of file gropenglpostprocessing.cpp.

void gr_opengl_post_process_set_defaults ( )

Definition at line 531 of file gropenglpostprocessing.cpp.

void gr_opengl_post_process_set_effect ( const char *  name,
int  value 

Definition at line 492 of file gropenglpostprocessing.cpp.

int opengl_check_framebuffer ( )

Definition at line 1412 of file gropengltexture.cpp.

bool opengl_post_init_shaders ( )

Definition at line 774 of file gropenglpostprocessing.cpp.

void opengl_post_init_uniforms ( int  flags)

Definition at line 483 of file gropenglpostprocessing.cpp.

void opengl_post_pass_fxaa ( )

Definition at line 201 of file gropenglpostprocessing.cpp.

void opengl_post_process_init ( )

Definition at line 966 of file gropenglpostprocessing.cpp.

void opengl_post_process_shutdown ( )

Definition at line 1014 of file gropenglpostprocessing.cpp.

void opengl_post_shader_header ( SCP_stringstream sflags,
shader_type  shader_t,
int  flags 

Definition at line 681 of file gropenglpostprocessing.cpp.

void recompile_fxaa_shader ( )

Definition at line 188 of file gropenglpostprocessing.cpp.

bool stars_sun_has_glare ( int  index)

Definition at line 2448 of file starfield.cpp.

Variable Documentation

GLuint Cockpit_depth_texture

Definition at line 547 of file gropenglpostprocessing.cpp.

int Fxaa_preset_last_frame

Definition at line 26 of file gropenglpostprocessing.cpp.

size_t fxaa_shader_id

Definition at line 23 of file gropenglpostprocessing.cpp.

bool fxaa_unavailable = false

Definition at line 25 of file gropenglpostprocessing.cpp.

float ls_cpintensity = 0.5f * 50 * 0.02f

Definition at line 36 of file gropenglpostprocessing.cpp.

float ls_density = 0.5f

Definition at line 32 of file gropenglpostprocessing.cpp.

float ls_falloff = 1.0f

Definition at line 34 of file gropenglpostprocessing.cpp.

bool ls_force_off = false

Definition at line 31 of file gropenglpostprocessing.cpp.

float ls_intensity = 0.5f

Definition at line 35 of file gropenglpostprocessing.cpp.

bool ls_on = false

Definition at line 30 of file gropenglpostprocessing.cpp.

int ls_samplenum = 50

Definition at line 37 of file gropenglpostprocessing.cpp.

float ls_weight = 0.02f

Definition at line 33 of file gropenglpostprocessing.cpp.

SCP_vector<post_effect_t> Post_effects

Definition at line 58 of file gropenglpostprocessing.cpp.

bool Post_in_frame = false

Definition at line 62 of file gropenglpostprocessing.cpp.

bool PostProcessing_override

Definition at line 78 of file systemvars.cpp.

GLuint Scene_depth_texture

Definition at line 41 of file gropengldraw.cpp.

GLuint Scene_normal_texture

Definition at line 37 of file gropengldraw.cpp.

GLuint Scene_position_texture

Definition at line 36 of file gropengldraw.cpp.

GLuint Scene_specular_texture

Definition at line 38 of file gropengldraw.cpp.

GLuint Shadow_map_depth_texture

Definition at line 85 of file gropengltnl.cpp.

float Sun_spot

Definition at line 708 of file fred.cpp.

bool zbuffer_saved = false

Definition at line 27 of file gropenglpostprocessing.cpp.