[Change] Make background stars a little feistier.
This commit is contained in:
parent
94df6a528c
commit
6131753132
@ -599,7 +599,6 @@ void Planet::DrawRockyPlanet(void) {
|
|||||||
|
|
||||||
SetMaterialColor(col);
|
SetMaterialColor(col);
|
||||||
n = rng(50, 100);
|
n = rng(50, 100);
|
||||||
printf("%d\n", n);
|
|
||||||
while(n--) {
|
while(n--) {
|
||||||
barrenContCol.GenCol(col, rng);
|
barrenContCol.GenCol(col, rng);
|
||||||
r = rng.drange(0.02, 0.1);
|
r = rng.drange(0.02, 0.1);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
static const float lightCol[] = { 1, 1, .9, 0 };
|
static const float lightCol[] = { 1, 1, .9, 0 };
|
||||||
const float WorldView::PICK_OBJECT_RECT_SIZE = 20.0f;
|
const float WorldView::PICK_OBJECT_RECT_SIZE = 20.0f;
|
||||||
|
|
||||||
#define BG_STAR_MAX 2000
|
#define BG_STAR_MAX 5000
|
||||||
|
|
||||||
WorldView::WorldView(void): View() {
|
WorldView::WorldView(void): View() {
|
||||||
SetTransparency(true);
|
SetTransparency(true);
|
||||||
@ -33,7 +33,8 @@ WorldView::WorldView(void): View() {
|
|||||||
glPointSize(1.0);
|
glPointSize(1.0);
|
||||||
glBegin(GL_POINTS);
|
glBegin(GL_POINTS);
|
||||||
for(int i = 0; i < BG_STAR_MAX; i++) {
|
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);
|
glColor3f(col, col, col);
|
||||||
glVertex3f(1000-L3D::rng(2000.0), 1000-L3D::rng(2000.0), 1000-L3D::rng(2000.0));
|
glVertex3f(1000-L3D::rng(2000.0), 1000-L3D::rng(2000.0), 1000-L3D::rng(2000.0));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user