Sha256: ca4ba96d6a1e98a5a821c86efc82d7d0340101c500af1d7407101b81e1462802
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
#include "rays/util.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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rays-0.3 | src/util.cpp |
rays-0.2.1 | src/util.cpp |
rays-0.2 | src/util.cpp |
rays-0.1.49 | src/util.cpp |
rays-0.1.48 | src/util.cpp |