[Change] Make background stars a little feistier.

This commit is contained in:
Allanis 2017-11-25 13:20:35 +00:00
parent 94df6a528c
commit 6131753132
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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));
}