From 7d3dcee5b370c05065eb409ad5c21d0bc64790b1 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Thu, 28 Jul 2022 17:28:13 -0400 Subject: blend modes implemented in renderers --- effects.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'effects.cpp') diff --git a/effects.cpp b/effects.cpp index 733e4d6..6c3c946 100644 --- a/effects.cpp +++ b/effects.cpp @@ -185,7 +185,7 @@ DrawGradient(pixel_buffer *Buffer, memory *Memory, property_channel Property[]) } #if WINDOWS -global_variable effect_header EffectList[2]; +global_variable effect_header EffectList[3]; #else global_variable effect_header EffectList[] { { @@ -202,7 +202,18 @@ global_variable effect_header EffectList[] { {"End Color", {.col = V4(1.0f, 0.0f, 0.0f, 1.0f)}, type_color, NORMALIZED_COL_MIN, NORMALIZED_COL_MAX}, {"Opacity", {1.0f}, type_real, NORMALIZED_REAL_MIN, NORMALIZED_REAL_MAX} } - } + }, + { + "Levels", + &DrawColor, 6, levels, { + {"Start point", {0.0f}, type_real}, + {"Mid point", {1.0f}, type_real}, + {"End point", {1.0f}, type_real}, + {"Start Col", {.col = V4(0.0f)}, type_color}, + {"Mid Col", {.col = V4(1.0f)}, type_color}, + {"End Col", {.col = V4(1.0f)}, type_color}, + } + }, }; #endif #if 0 -- cgit v1.2.3