Skip to content

Instantly share code, notes, and snippets.

@eipporko
eipporko / GPUComputationRenderer.js
Last active July 25, 2025 22:03
THREE's GPUComputationRenderer – MRT Support
import {
ClampToEdgeWrapping,
DataTexture,
FloatType,
NearestFilter,
RGBAFormat,
ShaderMaterial,
WebGLRenderTarget,
GLSL1,
GLSL3
@eipporko
eipporko / GLSL-Noise.md
Created February 28, 2025 12:56 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

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);