Skip to content

Documentation / @sw-file-lib/three / createSwLights

Function: createSwLights() ​

ts
function createSwLights(options?: CreateSwLightsOptions): [HemisphereLight, DirectionalLight];

Defined in: lights.ts:19

Create the default Stormworks-style light objects.

The returned array contains a hemisphere light and a directional light.

Parameters ​

ParameterType
optionsCreateSwLightsOptions

Returns ​

[HemisphereLight, DirectionalLight]