summaryrefslogtreecommitdiff
path: root/types/fx/shadow_data.c
diff options
context:
space:
mode:
authorWilliam McKinnon <[email protected]>2024-10-25 11:14:37 -0400
committerGitHub <[email protected]>2024-10-25 11:14:37 -0400
commitd998099612f0397234910ce753859ee127ec5b45 (patch)
treee60d699901f14054ea44718b1be8fcaf7dc9f244 /types/fx/shadow_data.c
parentbe5a78ac298f3b23c9955022ad35a18180a5894a (diff)
feat: add shadow_node (#66)
--------- Co-authored-by: Erik Reider <[email protected]>
Diffstat (limited to 'types/fx/shadow_data.c')
-rw-r--r--types/fx/shadow_data.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/types/fx/shadow_data.c b/types/fx/shadow_data.c
deleted file mode 100644
index d74cadc..0000000
--- a/types/fx/shadow_data.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "scenefx/types/fx/shadow_data.h"
-
-struct shadow_data shadow_data_get_default(void) {
- return (struct shadow_data) {
- .blur_sigma = 20,
- .color = {0.0f, 0.0f, 0.0f, 0.5f},
- .enabled = false,
- .offset_x = 0.0f,
- .offset_y = 0.0f,
- };
-}
-
-bool scene_buffer_has_shadow(struct shadow_data *data) {
- return data->enabled && data->blur_sigma > 0 && data->color.a > 0.0;
-}