Lighting
Built in
Lambert
import { lambertMaterial, RgbaNode, rgb } from "@hology/core/shader-nodes"
const color: RgbaNode = lambertMaterial(rgb(0x00ff00))Standard
import { standardMaterial, RgbaNode, rgb } from "@hology/core/shader-nodes"
const color: RgbaNode = standardMaterial({
color: rgb(0x00ff00),
emissive: rgb(0x9f7070),
emissiveIntensity: float(0),
roughness: float(1)
})