summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-12-29 17:14:38 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-12-29 17:14:38 -0800
commit4cde73239ee3a7cfa4a83a3f9d8a20effdb115ed (patch)
treedcf7ea64487fa40ec08c984abd729f597300e857 /src/game.c
parent79a1c4c1295328cc59e9b8643d2125f38fb11038 (diff)
plasma-node,shader-node: break out maga plasma shaderrev4
Performing the maga branch in the shader slows things down considerably. This commit gets rid of the in-shader branch by splitting the plasma fragment shader into maga and non-maga variants. This required adding shader vector support to shader-node so multiple shaders could be supplied, with a selector index pointer used to pick which is used by the render function.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index f4216ab..65b8d62 100644
--- a/src/game.c
+++ b/src/game.c
@@ -227,7 +227,7 @@ typedef struct game_t {
mask_t *mask;
teepee_t *teepee;
entity_t *new_infections;
- int is_maga;
+ unsigned is_maga;
float infections_rate, infections_rate_smoothed; /* 0-1 for none-max */
virus_t *viruses[GAME_NUM_VIRUSES];
m4f_t score_digits_x[10];
© All Rights Reserved