UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

16 lines (13 loc) 317 B
export class StandardMaterialDefinition { constructor() { this.metalness = 0; this.roughness = 1; } fromJSON({ roughness = 1, metalness = 0 }) { this.roughness = roughness; this.metalness = metalness; } }