Sha256: 87b9ae92943b5c9404d7b38b6132f60c093a148fbc63dffea5aff42eccd6042f
Contents?: true
Size: 1.04 KB
Versions: 34
Compression:
Stored size: 1.04 KB
Contents
#include "rays/noise.h" #include <glm/gtc/noise.hpp> #include "coord.h" namespace Rays { coord perlin (coord x) { return (coord) glm::perlin(glm::vec2(x, 0)); } coord perlin (coord x, coord y) { return (coord) glm::perlin(glm::vec2(x, y)); } coord perlin (coord x, coord y, coord z) { return (coord) glm::perlin(glm::vec3(x, y, z)); } coord perlin (coord x, coord y, coord z, coord w) { return (coord) glm::perlin(glm::vec4(x, y, z, w)); } coord perlin (const Coord3& position) { return (coord) glm::perlin(to_glm(position)); } coord simplex (coord x) { return (coord) glm::simplex(glm::vec2(x, 0)); } coord simplex (coord x, coord y) { return (coord) glm::simplex(glm::vec2(x, y)); } coord simplex (coord x, coord y, coord z) { return (coord) glm::simplex(glm::vec3(x, y, z)); } coord simplex (coord x, coord y, coord z, coord w) { return (coord) glm::simplex(glm::vec4(x, y, z, w)); } coord simplex (const Coord3& position) { return (coord) glm::simplex(to_glm(position)); } }// Rays
Version data entries
34 entries across 34 versions & 1 rubygems