glm/test/gtx/gtx-noise.cpp

24 lines
927 B
C++
Raw Normal View History

2011-04-21 11:27:05 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-04-21
2011-04-26 14:46:22 +00:00
// Updated : 2011-04-26
2011-04-21 11:27:05 +00:00
// Licence : This source is under MIT licence
// File : test/gtx/noise.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <glm/glm.hpp>
#include <glm/gtx/noise.hpp>
#include <iostream>
int main()
{
2011-04-21 16:20:56 +00:00
float ValueSNoise2D = glm::snoise(glm::vec2(0.5f));
2011-04-26 14:46:22 +00:00
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));
2011-04-21 11:27:05 +00:00
}