Skip to content

Commit ae5914b

Browse files
committed
Well, ok, the screenTint is also multiplied I guess?
1 parent 29b1986 commit ae5914b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

inox2d/src/params.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,19 +261,19 @@ impl Param {
261261
BindingValues::ScreenTintR(ref matrix) => {
262262
let (out_top, out_bottom) = ranges_out(matrix, x_mindex, x_maxdex, y_mindex, y_maxdex);
263263

264-
comps.get_mut::<Drawable>(binding.node).unwrap().blending.screen_tint.x *=
264+
comps.get_mut::<Drawable>(binding.node).unwrap().blending.screen_tint.x +=
265265
bi_interpolate_f32(val_normed, range_in, out_top, out_bottom, binding.interpolate_mode);
266266
}
267267
BindingValues::ScreenTintG(ref matrix) => {
268268
let (out_top, out_bottom) = ranges_out(matrix, x_mindex, x_maxdex, y_mindex, y_maxdex);
269269

270-
comps.get_mut::<Drawable>(binding.node).unwrap().blending.screen_tint.y *=
270+
comps.get_mut::<Drawable>(binding.node).unwrap().blending.screen_tint.y +=
271271
bi_interpolate_f32(val_normed, range_in, out_top, out_bottom, binding.interpolate_mode);
272272
}
273273
BindingValues::ScreenTintB(ref matrix) => {
274274
let (out_top, out_bottom) = ranges_out(matrix, x_mindex, x_maxdex, y_mindex, y_maxdex);
275275

276-
comps.get_mut::<Drawable>(binding.node).unwrap().blending.screen_tint.z *=
276+
comps.get_mut::<Drawable>(binding.node).unwrap().blending.screen_tint.z +=
277277
bi_interpolate_f32(val_normed, range_in, out_top, out_bottom, binding.interpolate_mode);
278278
}
279279
BindingValues::Opacity(ref matrix) => {

0 commit comments

Comments
 (0)