mirror of
https://github.com/recp/cglm.git
synced 2025-10-03 16:51:35 +00:00
perlin.h -> noise.h
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "test_common.h"
|
||||
|
||||
TEST_IMPL(GLM_PREFIX, perlin) {
|
||||
TEST_IMPL(GLM_PREFIX, perlin_vec4) {
|
||||
vec4 p1[] = {
|
||||
{0.1f, 0.2f, 0.3f, 0.4f},
|
||||
{0.2f, 0.3f, 0.4f, 0.5f},
|
||||
@@ -36,7 +36,7 @@ TEST_IMPL(GLM_PREFIX, perlin) {
|
||||
};
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
ASSERT(test_eq(GLM(perlin)(p1[i]), e[i]));
|
||||
ASSERT(test_eq(GLM(perlin_vec4)(p1[i]), e[i]));
|
||||
}
|
||||
|
||||
TEST_SUCCESS
|
@@ -30,7 +30,7 @@
|
||||
#include "test_quat.h"
|
||||
#include "test_project.h"
|
||||
#include "test_plane.h"
|
||||
#include "test_perlin.h"
|
||||
#include "test_noise.h"
|
||||
#include "test_affine.h"
|
||||
#include "test_affine2d.h"
|
||||
#include "test_affine_mat.h"
|
||||
@@ -70,7 +70,7 @@
|
||||
#include "test_quat.h"
|
||||
#include "test_project.h"
|
||||
#include "test_plane.h"
|
||||
#include "test_perlin.h"
|
||||
#include "test_noise.h"
|
||||
#include "test_affine.h"
|
||||
#include "test_affine2d.h"
|
||||
#include "test_affine_mat.h"
|
||||
|
12
test/tests.h
12
test/tests.h
@@ -356,9 +356,9 @@ TEST_DECLARE(glmc_project)
|
||||
TEST_DECLARE(glm_plane_normalize)
|
||||
TEST_DECLARE(glmc_plane_normalize)
|
||||
|
||||
/* perlin */
|
||||
TEST_DECLARE(glm_perlin)
|
||||
TEST_DECLARE(glmc_perlin)
|
||||
/* noise */
|
||||
TEST_DECLARE(glm_perlin_vec4)
|
||||
TEST_DECLARE(glmc_perlin_vec4)
|
||||
|
||||
/* utils */
|
||||
TEST_DECLARE(clamp)
|
||||
@@ -1538,9 +1538,9 @@ TEST_LIST {
|
||||
TEST_ENTRY(glm_plane_normalize)
|
||||
TEST_ENTRY(glmc_plane_normalize)
|
||||
|
||||
/* perlin */
|
||||
TEST_ENTRY(glm_perlin)
|
||||
TEST_ENTRY(glmc_perlin)
|
||||
/* noise */
|
||||
TEST_ENTRY(glm_perlin_vec4)
|
||||
TEST_ENTRY(glmc_perlin_vec4)
|
||||
|
||||
/* utils */
|
||||
TEST_ENTRY(clamp)
|
||||
|
Reference in New Issue
Block a user