Added noise function declarations

This commit is contained in:
Christophe Riccio
2011-04-26 15:46:22 +01:00
parent 00169d0cde
commit dbca36a123
2 changed files with 65 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-04-21
// Updated : 2011-04-21
// Updated : 2011-04-26
// Licence : This source is under MIT licence
// File : test/gtx/noise.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -14,4 +14,10 @@
int main()
{
float ValueSNoise2D = glm::snoise(glm::vec2(0.5f));
float ValueSNoise3D = glm::snoise(glm::vec3(0.5f));
float ValueSNoise4D = glm::snoise(glm::vec4(0.5f));
float ValueCNoise2D = glm::cnoise(glm::vec2(0.5f));
float ValueCNoise3D = glm::cnoise(glm::vec3(0.5f));
float ValueCNoise4D = glm::cnoise(glm::vec4(0.5f));
}