Ignore:
Timestamp:
May 10, 2012, 10:02:12 PM (9 years ago)
Author:
sam
Message:

orbital: simplify starfield.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1363 r1364  
    9090    //Ticker::Ref(m_particlesystem);
    9191
    92     m_starfield = new StarField(100, 100, 1.f, 2.f, 10.f, 20.f);
    93     Ticker::Ref(m_starfield);
     92    m_small_stars = new StarField(100, 1.f, 20.f);
     93    Ticker::Ref(m_small_stars);
     94    m_large_stars = new StarField(100, 2.f, 10.f);
     95    Ticker::Ref(m_large_stars);
    9496
    9597    /* Create a camera that matches the settings of XNA Orbital */
     
    190192    }
    191193
    192     Video::SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f));
     194    Video::SetClearColor(vec4(0.0f, 0.0f, 0.12f, 1.0f));
    193195
    194196    m.Render(m_model);
     
    202204        Ticker::Unref(m_players[i]);
    203205    //Ticker::Unref(m_particlesystem);
    204     Ticker::Unref(m_starfield);
     206    Ticker::Unref(m_small_stars);
     207    Ticker::Unref(m_large_stars);
    205208    Ticker::Unref(m_camera);
    206209}
Note: See TracChangeset for help on using the changeset viewer.