| #pragma once |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| class Noise1234 { |
| public: |
| Noise1234() {} |
| ~Noise1234() {} |
| |
| |
| |
| static float noise(float x); |
| static float noise(float x, float y); |
| static float noise(float x, float y, float z); |
| static float noise(float x, float y, float z, float w); |
| |
| |
| |
| static float pnoise(float x, int px); |
| static float pnoise(float x, float y, int px, int py); |
| static float pnoise(float x, float y, float z, int px, int py, int pz); |
| static float pnoise(float x, float y, float z, float w, int px, int py, |
| int pz, int pw); |
| |
| private: |
| static unsigned char perm[]; |
| static float grad(int hash, float x); |
| static float grad(int hash, float x, float y); |
| static float grad(int hash, float x, float y, float z); |
| static float grad(int hash, float x, float y, float z, float t); |
| }; |