From bbd81c2e31711cd3151eda5a735a67ddf587507b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20=E2=80=98Touky=E2=80=99=20Huet?= Date: Wed, 13 Mar 2013 17:28:53 +0000 Subject: [PATCH] 12_tutorial : fixed some bad commit. --- tutorial/12_voronoi.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tutorial/12_voronoi.cpp b/tutorial/12_voronoi.cpp index c81e4b39..0f173666 100644 --- a/tutorial/12_voronoi.cpp +++ b/tutorial/12_voronoi.cpp @@ -1,7 +1,8 @@ // // Lol Engine - Framebuffer Object tutorial // -// Copyright: (c) 2012-2013 Sam Hocevar +// Copyright: (c) 2013-2013 Sam Hocevar +// (c) 2013-2013 Benjamin "Touky" Huet // This program is free software; you can redistribute it and/or // modify it under the terms of the Do What The Fuck You Want To // Public License, Version 2, as published by Sam Hocevar. See @@ -47,6 +48,7 @@ public: m_vertices << vec2(-1.0, 1.0); m_ready = false; m_cur_fbo = 0; + m_time = .0f; m_timer = -1.0f; mode = 0; } @@ -159,7 +161,9 @@ public: int i = 4; while (i-- > 0) voronoi_points.Push(vec3(rand(512.f), rand(512.f), .0f), - vec2(64.f + rand(64.f), 64.f + rand(64.f))); + vec2(64.f + rand(64.f), 64.f + rand(64.f)) + //vec2(0.f) + ); mode = 1; } else