Skip to content

Instantly share code, notes, and snippets.

@theBoilingPoint
theBoilingPoint / LSystemInstanceNode.py
Created November 28, 2024 23:04
Maya Python L-System Tree Plugin
# LSystemInstanceNode.py
import sys
import random
import os
from math import sqrt
import maya.OpenMaya as OpenMaya
import maya.OpenMayaAnim as OpenMayaAnim
import maya.OpenMayaMPx as OpenMayaMPx
import maya.mel as mm
@theBoilingPoint
theBoilingPoint / 01_defines.glsl
Last active November 27, 2024 04:00
SDF of Alice
struct BSDF {
vec3 pos;
vec3 nor;
vec3 albedo;
float metallic;
float roughness;
float ao;
float thinness;
};
@theBoilingPoint
theBoilingPoint / glints.cpp
Last active December 23, 2023 20:47
Glint BRDF: Discrete Microfacet Implementation for Nori
#include <nori/bsdf.h>
#include <nori/frame.h>
#include <nori/warp.h>
#include <nori/quadtree.h>
using namespace std;
NORI_NAMESPACE_BEGIN
class Glints : public BSDF {