Skip to content

Instantly share code, notes, and snippets.

View eriksachse's full-sized avatar
🔘

Erik Sachse eriksachse

🔘
View GitHub Profile
@eriksachse
eriksachse / GLSL-Noise.md
Created December 28, 2022 09:27 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

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);
}
@eriksachse
eriksachse / PostFX.js
Created May 23, 2021 19:13 — forked from luruke/PostFX.js
Simple example of postprocessing in three.js
/*
To use it, simply declare:
`const post = new PostFX(rendering);`
Then on update, instead of:
`rendering.render(scene, camera);`
replace with:
`post.render(scene, camera);`
*/
import {