From fd59b20e7d367419e5b2f9962a6dbb8e0ffb1266 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sat, 30 Jan 2021 16:25:21 -0600 Subject: [PATCH] Revert "for non simd for now" This reverts commit a16315a9cf0efcf1b6c98af08569ef442a70d47f. --- src/pixie/blends.nim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pixie/blends.nim b/src/pixie/blends.nim index 9ba66f0..61a6a4f 100644 --- a/src/pixie/blends.nim +++ b/src/pixie/blends.nim @@ -239,9 +239,9 @@ proc `-`*(c: Color, v: float32): Color {.inline.} = # else: # screen(backdrop, 2 * source - 1) -proc softLight(backdrop, source: float32): float32 {.inline.} = - ## Pegtop - (1 - 2 * source) * backdrop ^ 2 + 2 * source * backdrop +# proc softLight(backdrop, source: float32): float32 {.inline.} = +# ## Pegtop +# (1 - 2 * source) * backdrop ^ 2 + 2 * source * backdrop proc Lum(C: Color): float32 {.inline.} = 0.3 * C.r + 0.59 * C.g + 0.11 * C.b @@ -367,11 +367,11 @@ proc alphaFix(backdrop, source, mixed: Color): Color = # result.b = hardLight(backdrop.b, source.b) # result = alphaFix(backdrop, source, result) -proc blendSoftLightFloats*(backdrop, source: Color): Color {.inline.} = - result.r = softLight(backdrop.r, source.r) - result.g = softLight(backdrop.g, source.g) - result.b = softLight(backdrop.b, source.b) - result = alphaFix(backdrop, source, result) +# proc blendSoftLightFloats*(backdrop, source: Color): Color {.inline.} = +# result.r = softLight(backdrop.r, source.r) +# result.g = softLight(backdrop.g, source.g) +# result.b = softLight(backdrop.b, source.b) +# result = alphaFix(backdrop, source, result) # proc blendDifferenceFloats*(backdrop, source: Color): Color {.inline.} = # result.r = abs(backdrop.r - source.r)