Ignore:
Timestamp:
May 11, 2012, 8:14:59 AM (11 years ago)
Author:
sam
Message:

orbital: better starfield randomising.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/starfield.h

    r1364 r1365  
    2222
    2323        for (int i = 0; i < count; i++)
    24             m_stars.Push(vec3(RandF(440.f) - 220.f, z, RandF(600.f) - 300.f),
     24            m_stars.Push(vec3(RandF(-220.f, 220.f), z, RandF(-150.f, 300.f)),
    2525                         vec3(0.f, 0.f, speed),
    2626                         RandF(0.f, 10.f));
     
    4444            if (m_stars[i].m1.z > 300.f)
    4545            {
    46                 m_stars[i].m1.x = RandF(440.f) - 220.f;
    47                 m_stars[i].m1.z = -300.f;
     46                m_stars[i].m1.x = RandF(-220.f, 220.f);
     47                m_stars[i].m1.z = RandF(-152.f, -150.f);
    4848            }
    4949        }
Note: See TracChangeset for help on using the changeset viewer.