Skip to content

Instantly share code, notes, and snippets.

View zpelgrims's full-sized avatar
🐢

Zeno Pelgrims zpelgrims

🐢
View GitHub Profile
# roots are at x=8 and y=2.3542
from numpy import matrix
import numpy as np
def w4():
eps = 1e-4
p = 0
@zpelgrims
zpelgrims / shadersxyz_contactsheet.py
Created February 17, 2019 20:35
shadersxyz_contactsheet
from PIL import Image, ImageFont, ImageDraw
import os
def make_contact_sheet(fnames, (ncols,nrows), (photow,photoh), (marl,mart,marr,marb), padding):
imgs = []
for fn in fnames:
img = Image.open(fn)
width, height = img.size
new_width, new_height = height, height
#include <ai.h>
#include <string>
#include <cstring>
AI_SHADER_NODE_EXPORT_METHODS(directionalOcclusionMethods);
struct ShaderData {
AtSampler* sampler;
AtString trace_set;