[Change] Make background stars a little feistier.
This commit is contained in:
		
							parent
							
								
									5451cf3be7
								
							
						
					
					
						commit
						1c3691b15f
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
@ -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));
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user