Changeset 1446


Ignore:
Timestamp:
Jun 8, 2012, 8:47:15 AM (7 years ago)
Author:
sam
Message:

orbital: small tweaks.

Location:
trunk/orbital
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1444 r1446  
    247247                   * m_model;
    248248        m_zoom *= 1.f + seconds * 0.8f * inout;
     249        if (m_zoom > 10.f) m_zoom = 10.f;
     250        else if (m_zoom < 0.1f) m_zoom = 0.1f;
    249251        m_angle += 50.f * seconds;
    250252    }
  • trunk/orbital/starfield.h

    r1442 r1446  
    2525        for (int i = 0; i < count; i++)
    2626            m_stars.Push(vec3(RandF(-220.f, 220.f), z, RandF(-150.f, 300.f)),
    27                          vec3(0.f, 0.f, speed),
     27                         vec3(0.f, 0.f, RandF(speed * 0.9f, speed * 1.1f)),
    2828                         RandF(0.f, 10.f));
    2929    }
Note: See TracChangeset for help on using the changeset viewer.