From 61317531323bc2edd0012605a819a5550d650a83 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 25 Nov 2017 13:20:35 +0000 Subject: [PATCH] [Change] Make background stars a little feistier. --- src/planet.cpp | 1 - src/world_view.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/planet.cpp b/src/planet.cpp index 72ce4d9..2059e9a 100644 --- a/src/planet.cpp +++ b/src/planet.cpp @@ -599,7 +599,6 @@ void Planet::DrawRockyPlanet(void) { SetMaterialColor(col); n = rng(50, 100); - printf("%d\n", n); while(n--) { barrenContCol.GenCol(col, rng); r = rng.drange(0.02, 0.1); diff --git a/src/world_view.cpp b/src/world_view.cpp index 6164006..3cad159 100644 --- a/src/world_view.cpp +++ b/src/world_view.cpp @@ -7,7 +7,7 @@ static const float lightCol[] = { 1, 1, .9, 0 }; const float WorldView::PICK_OBJECT_RECT_SIZE = 20.0f; -#define BG_STAR_MAX 2000 +#define BG_STAR_MAX 5000 WorldView::WorldView(void): View() { SetTransparency(true); @@ -33,7 +33,8 @@ WorldView::WorldView(void): View() { glPointSize(1.0); glBegin(GL_POINTS); for(int i = 0; i < BG_STAR_MAX; i++) { - float col = 0.2+L3D::rng(0.8); + float col = 0.05+L3D::rng.pdrand(4); + col = CLAMP(col, 0, 1); glColor3f(col, col, col); glVertex3f(1000-L3D::rng(2000.0), 1000-L3D::rng(2000.0), 1000-L3D::rng(2000.0)); }