Skip to content

Instantly share code, notes, and snippets.

View letinani's full-sized avatar

Laetitia Nanni letinani

  • Hellohikimori
  • Venus
View GitHub Profile
@floz
floz / MeshCustomMaterial.js
Created July 17, 2017 14:02
MeshPhysicalMaterial custom
import vs from "shaders/physicalcustom.vs"
import fs from "shaders/physicalcustom.fs"
export default class MeshCustomMaterial extends THREE.MeshPhysicalMaterial {
constructor(parameters, uniforms={}){
super(parameters)
this.defines = { 'PHYSICAL': '' };