瀏覽代碼

test: fix vertex positions to match our simplex implementation.

undefined
Sam Hocevar 10 年之前
父節點
當前提交
a4cbf3fcb2
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      demos/test/simplex.cpp

+ 4
- 3
demos/test/simplex.cpp 查看文件

@@ -21,7 +21,7 @@ int main(int argc, char **argv)
{
UNUSED(argc, argv);

int const period = 2;
int const period = 10;
float const zoom = 0.03f;

/* Create some gradients */
@@ -50,8 +50,9 @@ int main(int argc, char **argv)
}

/* Mark simplex vertices */
vec2 dx(1.f, 0.f);
vec2 dy = mat2::rotate(60.f) * dx;
vec2 diagonal = normalize(vec2(1.f));
vec2 dx = mat2::rotate(60.f) * diagonal;
vec2 dy = mat2::rotate(-60.f) * diagonal;
for (int j = -100; j < 100; ++j)
for (int i = -100; i < 100; ++i)
{


Loading…
取消
儲存