diff options
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 |