Exemplo n.º 1
0
LumaMixEffect::LumaMixEffect()
	: transition_width(1.0f), progress(0.5f), inverse(0)
{
	register_float("transition_width", &transition_width);
	register_float("progress", &progress);
	register_int("inverse", &inverse);
	register_uniform_bool("bool_inverse", &uniform_inverse);
	register_uniform_float("progress_mul_w_plus_one", &uniform_progress_mul_w_plus_one);
}
Exemplo n.º 2
0
VignetteEffect::VignetteEffect()
	: center(0.5f, 0.5f),
	  uniform_aspect_correction(1.0f, 1.0f),
	  uniform_flipped_center(0.5f, 0.5f),
	  radius(0.3f),
	  inner_radius(0.3f)
{
	register_vec2("center", (float *)&center);
	register_float("radius", (float *)&radius);
	register_float("inner_radius", (float *)&inner_radius);
	register_uniform_float("pihalf_div_radius", &uniform_pihalf_div_radius);
	register_uniform_vec2("aspect_correction", (float *)&uniform_aspect_correction);
	register_uniform_vec2("flipped_center", (float *)&uniform_flipped_center);
}
Exemplo n.º 3
0
MySoftBorderEffect::MySoftBorderEffect()
	: iwidth( 1 ),
	iheight( 1 ),
	borderSize(1.0)
{
	register_float("borderSize", &borderSize);
}
Exemplo n.º 4
0
PaddingEffect::PaddingEffect()
	: border_color(0.0f, 0.0f, 0.0f, 0.0f),
	  output_width(1280),
	  output_height(720),
	  top(0),
	  left(0),
	  border_offset_top(0.0f),
	  border_offset_left(0.0f),
	  border_offset_bottom(0.0f),
	  border_offset_right(0.0f)
{
	register_vec4("border_color", (float *)&border_color);
	register_int("width", &output_width);
	register_int("height", &output_height);
	register_float("top", &top);
	register_float("left", &left);
	register_float("border_offset_top", &border_offset_top);
	register_float("border_offset_left", &border_offset_left);
	register_float("border_offset_bottom", &border_offset_bottom);
	register_float("border_offset_right", &border_offset_right);
	register_uniform_vec2("offset", uniform_offset);
	register_uniform_vec2("scale", uniform_scale);
	register_uniform_vec2("normalized_coords_to_texels", uniform_normalized_coords_to_texels);
	register_uniform_vec2("offset_bottomleft", uniform_offset_bottomleft);
	register_uniform_vec2("offset_topright", uniform_offset_topright);
}
Exemplo n.º 5
0
HighlightCutoffEffect::HighlightCutoffEffect()
	: cutoff(0.0f)
{
	register_float("cutoff", &cutoff);
}
Exemplo n.º 6
0
SaturationEffect::SaturationEffect()
	: saturation(1.0f)
{
	register_float("saturation", &saturation);
}