diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-12-29 17:14:38 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-12-29 17:14:38 -0800 |
commit | 4cde73239ee3a7cfa4a83a3f9d8a20effdb115ed (patch) | |
tree | dcf7ea64487fa40ec08c984abd729f597300e857 /src/game.c | |
parent | 79a1c4c1295328cc59e9b8643d2125f38fb11038 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |