Changeset 1737


Ignore:
Timestamp:
Aug 14, 2012, 9:23:42 AM (11 years ago)
Author:
sam
Message:

tutorial: minor tweaks.

Location:
trunk/tutorial
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/08_fbo.cpp

    r1735 r1737  
    4545
    4646        m_time += seconds;
    47         m_hotspot = 0.4f * vec3(lol::cos(m_time * 2.f) + lol::cos(m_time * 3.3f),
    48                                 lol::sin(m_time * 4.4f) + lol::sin(m_time * 3.2f),
     47        m_hotspot = 0.4f * vec3(lol::sin(m_time * 4.f) + lol::cos(m_time * 5.3f),
     48                                lol::sin(m_time * 5.7f) + lol::cos(m_time * 4.4f),
    4949                                lol::sin(m_time * 5.f));
    5050        m_color = 0.25f * vec3(1.1f + lol::sin(m_time * 1.5f + 1.f),
  • trunk/tutorial/08_fbo.lolfx

    r1735 r1737  
    3434        float tc = 0.0, ta = 0.0;
    3535        {
    36             float s = 4.0 + 3.0 * in_Point.z;
     36            float s = 6.0 + 3.0 * in_Point.z;
    3737            vec2 p = pass_Position - in_Point.xy * 0.8;
    3838            float t = clamp(1.2 - dot(s * p, s * p), 0.0, 1.0);
    39             float u = t * t;
     39            float u = t * t * t * t;
    4040            tc += 3.0 * t * t - 2.0 * t * t * t;
    4141            ta += 3.0 * u * u - 2.0 * u * u * u;
Note: See TracChangeset for help on using the changeset viewer.