This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am szaq on github. | |
* I am szaq (https://keybase.io/szaq) on keybase. | |
* I have a public key ASCIztc7STffiq5eXbkxR8V_xbm08pKwEKzXMtiCJ6gUmgo | |
To claim this, I am signing this object: |
This file contains 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
vector sawtooth(vector Input, vector DividedScale, vector DividedOffset) { | |
vector Offseted = Input - DividedOffset; | |
vector Absolute = abs(Offseted); | |
vector Normalized = Offseted / Absolute; | |
vector Squared = Normalized * Offseted; | |
vector Modulo = fmod(Squared, DividedScale) / DividedScale; | |
vector Inverted = 1 - Modulo; | |
return 1 - ((1 - Normalized) * Modulo + Normalized * Inverted); | |
} |
This file contains 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
vector custom_random(vector Seed, vector Pixelator, float RandomSeed, float Division) { | |
return hashnoise(Pixelator * 2343249.2 + Seed * RandomSeed); | |
} | |
float count_treshold(float RandomizedCount, float Count) { | |
float Mix = Count < 0 ? (1 - RandomizedCount) : RandomizedCount; | |
return Mix < abs(Count); | |
} | |
float clipping_mask(vector Vector, float CountTreshold) { |
This file contains 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
vector custom_random(vector Seed, vector Pixelator, float RandomSeed, float Division) { | |
return hashnoise(Pixelator * 2343249.2 + Seed * RandomSeed); | |
} | |
float count_treshold(float RandomizedCount, float Count) { | |
float Mix = Count < 0 ? (1 - RandomizedCount) : RandomizedCount; | |
return Mix < abs(Count); | |
} | |
float clipping_mask(vector Vector, float CountTreshold) { |