This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct BSDF { | |
vec3 pos; | |
vec3 nor; | |
vec3 albedo; | |
float metallic; | |
float roughness; | |
float ao; | |
float thinness; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 { |