FragEffect

fragment shader effect

Constructors

this
this(Scene scene, Shader shader)
Undocumented in source.
this
this(Scene scene, ReloadableShader reloadable_shader)
Undocumented in source.

Members

Functions

init_time
void init_time()
Undocumented in source. Be warned that the author may not have intended to support it.
reload_shader
void reload_shader()
Undocumented in source. Be warned that the author may not have intended to support it.
sync_uniforms
void sync_uniforms()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

shader_uni_frame
enum shader_uni_frame;
Undocumented in source.
shader_uni_resolution
enum shader_uni_resolution;
Undocumented in source.
shader_uni_time
enum shader_uni_time;
Undocumented in source.

Variables

scene
Scene scene;
Undocumented in source.
start_frame
int start_frame;
Undocumented in source.
start_time
float start_time;
Undocumented in source.

Inherited Members

From Effect

shader
Shader shader;

the shader program for the effect

color
Color color;

the tint color

reloadable_shader
ReloadableShader reloadable_shader;

a reloadable shader if any

update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
reload_shader
void reload_shader()
Undocumented in source. Be warned that the author may not have intended to support it.
set_shader_var_imm
bool set_shader_var_imm(string name, T value)

set a uniform value to an immeditae value

set_shader_var
bool set_shader_var(string name, T value)

set a uniform value to a variable by reference

get_shader_loc
int get_shader_loc(string name)

get location of uniform in shader. returns -1 if not found

Meta