Changeset 1051


Ignore:
Timestamp:
Nov 7, 2011, 1:36:21 AM (9 years ago)
Author:
sam
Message:

debug: fix a timing issue in the quad debug object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debug/quad.cpp

    r968 r1051  
    9595        for (npoints = 0; npoints < SINE_SIZE && x <= 1.0f; npoints++)
    9696        {
    97             float y = 0.5f + 0.5f * lol_sin(x * 2.0f * M_PI + time * 2e-3f);
     97            float y = 0.5f + 0.5f * lol_sin(x * 2.0f * M_PI + time * 5e-3f);
    9898            points[npoints * 2] = aa.x + (bb.x - aa.x) * x;
    9999            points[npoints * 2 + 1] = aa.y + (bb.y - aa.y) * y;
    100100
    101             float dy = M_PI * lol_cos(x * 2.0f * M_PI + time * 2e-3f);
     101            float dy = M_PI * lol_cos(x * 2.0f * M_PI + time * 5e-3f);
    102102            float dx = SINE_SPACE / sqrtf(1.0f + dy * dy);
    103103            x += dx;
     
    210210    GLfloat texcoords[12];
    211211    mat4 t1 = mat4::translate(0.5f, 0.5f, 0.0f)
    212             * mat4::rotate(0.00054f * data->time, 0.0f, 0.0f, 1.0f)
     212            * mat4::rotate(0.0254f * data->time, 0.0f, 0.0f, 1.0f)
    213213            * mat4::translate(-0.5f, -0.5f, 0.0f);
    214214    for (int i = 0; i < 6; i++)
     
    221221    GLfloat colors[18];
    222222    mat4 t2 = mat4::translate(0.5f, 0.5f, 0.5f)
    223             * mat4::rotate(0.00034f * data->time, 0.0f, 0.0f, 1.0f)
    224             * mat4::rotate(0.00041f * data->time, 0.0f, 1.0f, 0.0f)
    225             * mat4::rotate(0.00057f * data->time, 1.0f, 0.0f, 0.0f)
     223            * mat4::rotate(0.0154f * data->time, 0.0f, 0.0f, 1.0f)
     224            * mat4::rotate(0.0211f * data->time, 0.0f, 1.0f, 0.0f)
     225            * mat4::rotate(0.0267f * data->time, 1.0f, 0.0f, 0.0f)
    226226            * mat4::translate(-0.5f, -0.5f, 0.0f);
    227227    for (int i = 0; i < 6; i++)
Note: See TracChangeset for help on using the changeset viewer.