Skip to content

Instantly share code, notes, and snippets.

# Generates random walking spline curves in Blender (2.79)
# Curve creation code pinched from https://blender.stackexchange.com/a/6751
# ello.co/desmarkie
import bpy
import bmesh
import random
from mathutils import Vector
from mathutils import Euler
@taseenb
taseenb / MeshCustomMaterial.js
Created September 25, 2017 22:30 — forked from mattdesl/MeshCustomMaterial.js
Custom mesh standard material with glslify + ThreeJS r83dev
const glslify = require('glslify');
const path = require('path');
// This is the original source, we will copy + paste it for our own GLSL
// const vertexShader = THREE.ShaderChunk.meshphysical_vert;
// const fragmentShader = THREE.ShaderChunk.meshphysical_frag;
// Our custom shaders
const fragmentShader = glslify(path.resolve(__dirname, 'standard.frag'));
const vertexShader = glslify(path.resolve(__dirname, 'standard.vert'));