Effect

represents an effect

Constructors

this
this()
Undocumented in source.
this
this(Shader shader, Color color)
Undocumented in source.
this
this(ReloadableShader reloadable_shader, Color color)
Undocumented in source.

Members

Functions

get_shader_loc
int get_shader_loc(string name)

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

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

set a uniform value to a variable by reference

set_shader_var_imm
bool set_shader_var_imm(string name, T value)

set a uniform value to an immeditae value

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

Variables

color
Color color;

the tint color

reloadable_shader
ReloadableShader reloadable_shader;

a reloadable shader if any

shader
Shader shader;

the shader program for the effect

Meta