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
// Check other page for Noise function | |
const float PI = 3.141592653589793238462643383279; | |
const float seed0 = 0.0; | |
// Rotations to hide some symmetry/bias, 4D rotations as the rotation must be applied to the | |
// points in 4D space to maintain seamlessness, rotations are arbitrary | |
// Matrices from here, only XZ and ZU are used here but any combination should work | |
const mat4 rot0 = mat4( | |
cos(0.77), 0, -cos(0.77), 0, | |
0, 1, 0, 0, |
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
#pragma once | |
/******************************************************************************* | |
OpenSimplex Noise in C++ | |
Ported from https://gist.github.com/digitalshadow/134a3a02b67cecd72181 | |
Originally from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
Optimised by DigitalShadow | |
This version by Mark A. Ropper (Markyparky56) | |
*******************************************************************************/ | |
#include <array> | |
#include <vector> |
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
// ==UserScript== | |
// @name Reddit - Block NSFW | |
// @description Redirects NSFW subreddits to another site. | |
// @version 1.0 | |
// @include /^https?://.*\.reddit\.com/r/.*$/ | |
// @license GPLv3 | |
// @grant GM_xmlhttpRequest | |
// @namespace https://github.com/Markyparky56 | |
// ==/UserScript== |