Changeset 1737
- Timestamp:
- Aug 14, 2012, 9:23:42 AM (11 years ago)
- Location:
- trunk/tutorial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tutorial/08_fbo.cpp
r1735 r1737 45 45 46 46 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), 49 49 lol::sin(m_time * 5.f)); 50 50 m_color = 0.25f * vec3(1.1f + lol::sin(m_time * 1.5f + 1.f), -
trunk/tutorial/08_fbo.lolfx
r1735 r1737 34 34 float tc = 0.0, ta = 0.0; 35 35 { 36 float s = 4.0 + 3.0 * in_Point.z;36 float s = 6.0 + 3.0 * in_Point.z; 37 37 vec2 p = pass_Position - in_Point.xy * 0.8; 38 38 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; 40 40 tc += 3.0 * t * t - 2.0 * t * t * t; 41 41 ta += 3.0 * u * u - 2.0 * u * u * u;
Note: See TracChangeset
for help on using the changeset viewer.