瀏覽代碼

12_tutorial : fixed some bad commit.

legacy
Benjamin ‘Touky’ Huet touky 11 年之前
父節點
當前提交
bbd81c2e31
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      tutorial/12_voronoi.cpp

+ 6
- 2
tutorial/12_voronoi.cpp 查看文件

@@ -1,7 +1,8 @@
//
// Lol Engine - Framebuffer Object tutorial
//
// Copyright: (c) 2012-2013 Sam Hocevar <sam@hocevar.net>
// Copyright: (c) 2013-2013 Sam Hocevar <sam@hocevar.net>
// (c) 2013-2013 Benjamin "Touky" Huet <huet.benjamin@gmail.com>
// 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<float>(512.f), rand<float>(512.f), .0f),
vec2(64.f + rand<float>(64.f), 64.f + rand<float>(64.f)));
vec2(64.f + rand<float>(64.f), 64.f + rand<float>(64.f))
//vec2(0.f)
);
mode = 1;
}
else


Loading…
取消
儲存