Skip to content

Instantly share code, notes, and snippets.

View phxtho's full-sized avatar

Phatho Pukwana phxtho

View GitHub Profile
@phxtho
phxtho / am7.frag
Created June 13, 2023 14:19
Fragment shader recreating lászló moholy-nagy's am 7 (26)
#ifdef GL_ES
precision mediump float;
#endif
#define PI 3.14159265359
#define TWO_PI 6.28318530718
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
/*
* Added the following to https://github.com/houshuang/roam-export/blob/master/index.mjs
*/
if (action === "--foam") {
let dir = 'export'
// Create the output dir if it doesn't exist
if (!fs.existsSync(dir)){
fs.mkdirSync(dir);