diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-07-28 17:28:13 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-07-28 17:28:13 -0400 |
commit | 7d3dcee5b370c05065eb409ad5c21d0bc64790b1 (patch) | |
tree | ff8a849022d40a775f3649a15166649639f95f5e /effects.cpp | |
parent | 313ca58550163380e072880b360bc6076d27c8e5 (diff) |
blend modes implemented in renderers
Diffstat (limited to 'effects.cpp')
-rw-r--r-- | effects.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
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 |