Skip to content

Instantly share code, notes, and snippets.

@deodat
deodat / GLSL-Noise.md
Created August 16, 2023 09:36 — 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);
@deodat
deodat / gulpfile.js
Created October 15, 2019 17:08
Gulpfile for watching changes in editing a MJML email
const gulp = require('gulp');
const mjml = require('gulp-mjml');
gulp.task('mjml', function() {
return gulp.src('./index.mjml')
.pipe(mjml())
.pipe(gulp.dest('./html'))
});
gulp.task('watch', function() {
@deodat
deodat / gulpfile.babel.js
Last active October 13, 2019 19:32
Gulp config for WordPresse themes
// ref https://css-tricks.com/gulp-for-wordpress-initial-setup/
// ref https://css-tricks.com/gulp-for-wordpress-creating-the-tasks/
import { src, dest, watch, series, parallel } from 'gulp';
import yargs from 'yargs';
import sass from 'gulp-sass';
import cleanCss from 'gulp-clean-css';
import gulpif from 'gulp-if';
import postcss from 'gulp-postcss';
import sourcemaps from 'gulp-sourcemaps';