#include <shader.h>


Public Member Functions | |
| int | init (Graphics *gfx) |
| void | Select () |
| void | Params (matrix4 &mvp, vector< Light * > &light_list, size_t num_lights, vec3 &offset, int u_time) |
| void | set_shadow_matrix (int index, matrix4 &mvp) |
| void | set_matrix (matrix4 &mvp) |
| virtual void | prelink (void) |
| void | set_max (int max) |
| void | set_brightness (float value) |
| void | set_exposure (float value) |
| void | set_contrast (float value) |
| void | set_ambient (float ambient) |
| void | set_lightmap (float lightmap) |
| void | set_shadowmap (float value) |
| void | set_light (float ambient, float lightmap, int num_light) |
| void | set_lightmap_stage (int flag) |
| void | set_depth (int flag) |
| void | set_normalmap (int value) |
| void | set_alpha (float value) |
| void | set_tone (int value) |
| void | tcmod_stretch_sin (float amplitude, float phase, float freq, int tick_num, int index) |
| void | tcmod_stretch_sawtooth (float amplitude, float phase, float freq, int tick_num, int index) |
| void | tcmod_stretch_inverse_sawtooth (float amplitude, float phase, float freq, int tick_num, int index) |
| void | tcmod_stretch_triangle (float amplitude, float phase, float freq, int tick_num, int index) |
| void | tcmod_stretch_square (float amplitude, float phase, float freq, int tick_num, int index) |
| void | rgbgen_wave_sin (float amplitude, float phase, float freq, int tick_num, int index) |
| void | rgbgen_wave_sawtooth (float amplitude, float phase, float freq, int tick_num, int index) |
| void | rgbgen_wave_inverse_sawtooth (float amplitude, float phase, float freq, int tick_num, int index) |
| void | rgbgen_wave_triangle (float amplitude, float phase, float freq, int tick_num, int index) |
| void | rgbgen_wave_square (float amplitude, float phase, float freq, int tick_num, int index) |
| void | set_fog (float fog, float start, float end, vec3 &color) |
| void | set_clip (vec4 *plane) |
| void | tcmod_scroll (vec2 &scroll, int index) |
| void | tcmod_scale (vec2 &scale, int index) |
| void | tcmod_rotate (float deg, int index) |
| void | alphatest (int stage, int mode) |
| void | envmap (int stage, int env) |
| void | turb (int stage, int turb) |
| void | rgbgen_scale (int stage, float scale) |
| void | portal (int portal) |
| void | set_num_shadowmap (int value) |
Public Member Functions inherited from Shader | |
| Shader () | |
| int | init (Graphics *gfx, char *vertex_file, char *geometry_file, char *fragment_file) |
| void | destroy () |
| virtual | ~Shader () |
Public Attributes | |
| int | m_num_light |
| float | m_ambient |
| float | m_brightness |
| float | m_exposure |
| float | m_lightmap |
| float | m_shadowmap |
| float | m_contrast |
| float | m_alpha |
| int | m_tone |
Private Attributes | |
| int | matrix |
| int | texture [NUM_STAGE] |
| int | texture_normalmap |
| int | texture_lightmap |
| int | u_tcmod_scroll [NUM_STAGE] |
| int | u_tcmod_scale [NUM_STAGE] |
| int | u_tcmod_sin [NUM_STAGE] |
| int | u_tcmod_cos [NUM_STAGE] |
| int | u_env [NUM_STAGE] |
| int | u_water [NUM_STAGE] |
| int | u_rgbgen_scale [NUM_STAGE] |
| int | u_alphatest [NUM_STAGE] |
| int | u_portal |
| int | u_normalmap |
| int | u_alpha |
| int | shadow_matrix [18] |
| int | depth [18] |
| int | u_time |
| int | u_ambient |
| int | u_lightmap |
| int | u_brightness |
| int | u_exposure |
| int | u_contrast |
| int | u_shadowmap |
| int | u_lightmap_stage |
| int | u_depth |
| int | u_num_lights |
| int | u_num_shadowmap |
| int | u_position |
| int | u_color |
| int | u_tone |
| int | u_fog |
| int | u_fog_start |
| int | u_fog_end |
| int | u_fog_color |
| int | u_clip0 |
| int | u_clip1 |
| int | u_clip2 |
| int | u_clip3 |
| float | m_fog |
| vec3 | m_color |
| float | m_start |
| float | m_end |
| float | m_normalmap |
| int | m_num_shadowmap |
| unsigned int | max_light |
Additional Inherited Members | |
Protected Attributes inherited from Shader | |
| const char * | vertex_src |
| const char * | geometry_src |
| const char * | fragment_src |
| int | program_handle |
| int | vertex_handle |
| int | geometry_handle |
| int | fragment_handle |
| void mLight2::alphatest | ( | int | stage, |
| int | mode | ||
| ) |

| void mLight2::envmap | ( | int | stage, |
| int | env | ||
| ) |

| int mLight2::init | ( | Graphics * | gfx | ) |

| void mLight2::Params | ( | matrix4 & | mvp, |
| vector< Light * > & | light_list, | ||
| size_t | num_lights, | ||
| vec3 & | offset, | ||
| int | u_time | ||
| ) |

| void mLight2::portal | ( | int | portal | ) |

|
virtual |
Implements Shader.
| void mLight2::rgbgen_scale | ( | int | stage, |
| float | scale | ||
| ) |

| void mLight2::rgbgen_wave_inverse_sawtooth | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |
| void mLight2::rgbgen_wave_sawtooth | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |
| void mLight2::rgbgen_wave_sin | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |

| void mLight2::rgbgen_wave_square | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |

| void mLight2::rgbgen_wave_triangle | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |
|
virtual |
| void mLight2::set_alpha | ( | float | value | ) |

| void mLight2::set_ambient | ( | float | ambient | ) |

| void mLight2::set_brightness | ( | float | value | ) |

| void mLight2::set_clip | ( | vec4 * | plane | ) |
| void mLight2::set_contrast | ( | float | value | ) |

| void mLight2::set_depth | ( | int | flag | ) |
| void mLight2::set_exposure | ( | float | value | ) |

| void mLight2::set_fog | ( | float | fog, |
| float | start, | ||
| float | end, | ||
| vec3 & | color | ||
| ) |

| void mLight2::set_light | ( | float | ambient, |
| float | lightmap, | ||
| int | num_light | ||
| ) |

| void mLight2::set_lightmap | ( | float | lightmap | ) |

| void mLight2::set_lightmap_stage | ( | int | flag | ) |

| void mLight2::set_matrix | ( | matrix4 & | mvp | ) |

| void mLight2::set_max | ( | int | max | ) |

| void mLight2::set_normalmap | ( | int | value | ) |

| void mLight2::set_num_shadowmap | ( | int | value | ) |

| void mLight2::set_shadow_matrix | ( | int | index, |
| matrix4 & | mvp | ||
| ) |

| void mLight2::set_shadowmap | ( | float | value | ) |

| void mLight2::set_tone | ( | int | value | ) |

| void mLight2::tcmod_rotate | ( | float | deg, |
| int | index | ||
| ) |

| void mLight2::tcmod_scale | ( | vec2 & | scale, |
| int | index | ||
| ) |

| void mLight2::tcmod_scroll | ( | vec2 & | scroll, |
| int | index | ||
| ) |

| void mLight2::tcmod_stretch_inverse_sawtooth | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |
| void mLight2::tcmod_stretch_sawtooth | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |
| void mLight2::tcmod_stretch_sin | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |

| void mLight2::tcmod_stretch_square | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |

| void mLight2::tcmod_stretch_triangle | ( | float | amplitude, |
| float | phase, | ||
| float | freq, | ||
| int | tick_num, | ||
| int | index | ||
| ) |
| void mLight2::turb | ( | int | stage, |
| int | turb | ||
| ) |

|
private |
| float mLight2::m_alpha |
| float mLight2::m_ambient |
| float mLight2::m_brightness |
|
private |
| float mLight2::m_contrast |
|
private |
| float mLight2::m_exposure |
|
private |
| float mLight2::m_lightmap |
|
private |
| int mLight2::m_num_light |
|
private |
| float mLight2::m_shadowmap |
|
private |
| int mLight2::m_tone |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.2