main
Cameron Murphy Reikes 2 years ago
parent 3a3614a9f2
commit 42711478e1

@ -2064,7 +2064,6 @@ void create_initial_world(GameState *gs)
} }
#else #else
EntityID suns[] = {};
create_bomb_station(gs, (V2){-200.0f, 0.0f}, BoxExplosive); create_bomb_station(gs, (V2){-200.0f, 0.0f}, BoxExplosive);
create_hard_shell_station(gs, (V2){0.0f, 400.0f}, BoxGyroscope); create_hard_shell_station(gs, (V2){0.0f, 400.0f}, BoxGyroscope);
create_bomb_station(gs, (V2){0.0f, -150.0f}, BoxCloaking); create_bomb_station(gs, (V2){0.0f, -150.0f}, BoxCloaking);

@ -53,9 +53,10 @@ void main() {
{ {
hsv.y = 0.0f; hsv.y = 0.0f;
} else { } else {
float green_hue = 118.0f / 360.0f; float green_hue = 118.0f / 360.0f;
if(abs(hsv.r - green_hue) < 0.15) { if(abs(hsv.r - green_hue) < 0.15) {
hsv.x = target_hue; hsv.x = target_hue;
}
} }
fragColor = vec4(hsv2rgb(hsv), outColor.a); fragColor = vec4(hsv2rgb(hsv), outColor.a);
} }

Loading…
Cancel
Save