X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fstarfield.c;h=081a6ee358bbbe39e783a3aa7ae4991f60f94b89;hb=e785b2f83fd3aba82cb07ca5dd8d590d817d376c;hp=6f7b9ae46ca4eadbec304c1f5e2017cfeda6d265;hpb=7e20f7693be642b006fa6c4d65f6da1b00b0621f;p=vrtris diff --git a/src/starfield.c b/src/starfield.c index 6f7b9ae..081a6ee 100644 --- a/src/starfield.c +++ b/src/starfield.c @@ -8,7 +8,7 @@ #include "logger.h" static unsigned int tex_bolt, tex_star; -static float star_speed = 100.0f; +static float star_speed = 50.0f; static float star_depth = 1000.0f; static float star_size = 0.35f; @@ -20,7 +20,7 @@ static float star_lenxy[STAR_COUNT]; int init_starfield(void) { int i; - float width; + float width, excl_rad; if(!(tex_star = img_gltexture_load("data/pimg.png"))) { error_log("failed to load star texture\n"); @@ -32,10 +32,15 @@ int init_starfield(void) } width = star_depth / 4.0f; + excl_rad = 10.0f / width; for(i=0; i