Skip to content

Instantly share code, notes, and snippets.

View pashaydev's full-sized avatar
🏠
Working from home

Pasha Yakubovsky pashaydev

🏠
Working from home
View GitHub Profile
@akella
akella / curl.glsl
Created November 5, 2023 09:03
curl.glsl
#define PI 3.1415926538
const float EPS = 0.001;
vec4 mod289(vec4 x) {
return x - floor(x * (1.0 / 289.0)) * 289.0;
}
float mod289(float x) {
return x - floor(x * (1.0 / 289.0)) * 289.0;
}
vec4 permute(vec4 x) {