Changeset 1817
- Timestamp:
- Aug 25, 2012, 12:12:38 AM (8 years ago)
- Location:
- trunk/tutorial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tutorial/08_fbo.cpp
r1813 r1817 47 47 lol::sin(m_time * 5.7f) + lol::cos(m_time * 4.4f), 48 48 lol::sin(m_time * 5.f)); 49 m_color = 0.25f * vec3(1.1f + lol::sin(m_time * 1.5f + 1.f),50 1.1f + lol::sin(m_time * 1.8f + 1.3f),51 1.1f + lol::sin(m_time * 1.7f));49 m_color = 0.25f * vec3(1.1f + lol::sin(m_time * 2.5f + 1.f), 50 1.1f + lol::sin(m_time * 2.8f + 1.3f), 51 1.1f + lol::sin(m_time * 2.7f)); 52 52 /* Saturate dot color */ 53 53 float x = std::max(m_color.x, std::max(m_color.y, m_color.z)); -
trunk/tutorial/08_fbo.lolfx
r1813 r1817 34 34 float tc = 0.0, ta = 0.0; 35 35 { 36 float s = 6.0 + 3.0 * in_Point.z;36 float s = 3.0 + 2.0 * in_Point.z; 37 37 vec2 p = pass_Position - in_Point.xy * 0.9; 38 38 float t = clamp(1.2 - dot(s * p, s * p), 0.0, 1.0); … … 74 74 float tc = 0.0, ta = 0.0; 75 75 { 76 float s = 6.0 + 3.0 * in_Point.z;76 float s = 3.0 + 2.0 * in_Point.z; 77 77 float2 p = pass_Position - in_Point.xy * 0.9; 78 78 float t = clamp(1.2 - dot(s * p, s * p), 0.0, 1.0);
Note: See TracChangeset
for help on using the changeset viewer.