Skip to content

Instantly share code, notes, and snippets.

View jonybekov's full-sized avatar
💭
I may be slow to respond.

R4Y jonybekov

💭
I may be slow to respond.
View GitHub Profile
@CharlieHess
CharlieHess / how-to-use-it.tsx
Last active August 27, 2020 13:45
Helpers to track OutlinePass selection
function Scene() {
return (
<Canvas>
<OutlineItemsProvider>
<SomeMesh />
<SomeMesh />
<SomeMesh />
<Effects />
</OutlineItemsProvider>
</Canvas>
@amundo
amundo / saveJSON.js
Created November 22, 2014 01:44
a simple function to export a JSON file
function saveJSON(data, saveAs){
var stringified = JSON.stringify(data, null, 2);
var blob = new Blob([stringified], {type: "application/json"});
var url = URL.createObjectURL(blob);
var a = document.createElement('a');
a.download = saveAs + '.json';
a.href = url;
a.id = saveAs;
document.body.appendChild(a);
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active July 18, 2025 09:10
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);