float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define RAND48_SEED_0 (0x330e) | |
| #define RAND48_SEED_1 (0xabcd) | |
| #define RAND48_SEED_2 (0x1234) | |
| #define RAND48_MULT_0 (0xe66d) | |
| #define RAND48_MULT_1 (0xdeec) | |
| #define RAND48_MULT_2 (0x0005) | |
| #define RAND48_ADD (0x000b) | |
| unsigned short _rand48_seed[3] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " VIM Configuration File | |
| " Description: Optimized for C/C++ development, but useful also for other things. | |
| " Author: Gerhard Gappmeier | |
| " | |
| " set UTF-8 encoding | |
| set enc=utf-8 | |
| set fenc=utf-8 | |
| set termencoding=utf-8 | |
| " disable vi compatibility (emulation of old bugs) |