(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 1 && arguments[1] !== undefined ? arguments[1] : 0.5; var position = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [0, 10, 10]; var distance = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 100; addAmbient(world, 1 - intensity); return new WHS.SpotLight({ light: { intensity: intensity, distance: distance }, shadowmap: { fov: 90 }, target: { x: 50 }, position: position }).addTo(world); } function addPlane(world) { var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; return new WHS.Plane({ geometry: { width: size, height: size }, mass: 0, material: { color: 0x447F8B, kind: 'phong' }, rotation: { x: -Math.PI / 2 } }).addTo(world); } function addBoxPlane(world) { var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100; return new WHS.Box({ geometry: { width: size, height: 1, depth: size }, mass: 0, material: { color: 0x447F8B, kind: 'phong' } }).addTo(world); } },{}]},{},[1]);