Browse Source

tutorial: minor shadebob demo tweaks.

legacy
Sam Hocevar sam 12 years ago
parent
commit
779815802a
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      tutorial/08_fbo.cpp
  2. +2
    -2
      tutorial/08_fbo.lolfx

+ 3
- 3
tutorial/08_fbo.cpp View File

@@ -46,9 +46,9 @@ public:
m_hotspot = 0.4f * vec3(lol::sin(m_time * 4.f) + lol::cos(m_time * 5.3f),
lol::sin(m_time * 5.7f) + lol::cos(m_time * 4.4f),
lol::sin(m_time * 5.f));
m_color = 0.25f * vec3(1.1f + lol::sin(m_time * 1.5f + 1.f),
1.1f + lol::sin(m_time * 1.8f + 1.3f),
1.1f + lol::sin(m_time * 1.7f));
m_color = 0.25f * vec3(1.1f + lol::sin(m_time * 2.5f + 1.f),
1.1f + lol::sin(m_time * 2.8f + 1.3f),
1.1f + lol::sin(m_time * 2.7f));
/* Saturate dot color */
float x = std::max(m_color.x, std::max(m_color.y, m_color.z));
m_color /= x;


+ 2
- 2
tutorial/08_fbo.lolfx View File

@@ -33,7 +33,7 @@ void main(void)
{
float tc = 0.0, ta = 0.0;
{
float s = 6.0 + 3.0 * in_Point.z;
float s = 3.0 + 2.0 * in_Point.z;
vec2 p = pass_Position - in_Point.xy * 0.9;
float t = clamp(1.2 - dot(s * p, s * p), 0.0, 1.0);
float u = t * t * t * t;
@@ -73,7 +73,7 @@ void main(in float2 pass_Position : TEXCOORD0,
{
float tc = 0.0, ta = 0.0;
{
float s = 6.0 + 3.0 * in_Point.z;
float s = 3.0 + 2.0 * in_Point.z;
float2 p = pass_Position - in_Point.xy * 0.9;
float t = clamp(1.2 - dot(s * p, s * p), 0.0, 1.0);
float u = t * t * t * t;


Loading…
Cancel
Save