CameraLightSource

Inherits LightSource

Members

Name

Documentation

Type

Description

Optional

Intensity

The intensity of this light source

Double

Value of type ‘Double’

Yes

Inherited members from LightSource

Name

Documentation

Type

Description

Optional

Identifier

The identifier of the light source

Identifier

An identifier string. May not contain ‘.’, spaces, newlines, or tabs

No

Type

The type of the light source that is described in this element. The available types of light sources depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation

String

Must name a valid LightSource type

No

Enabled

Whether the light source is enabled or not

Boolean

Value of type ‘Boolean’

Yes

Asset Examples

 1local sun = asset.require("scene/solarsystem/sun/transforms")
 2
 3
 4
 5local modelFolder = asset.resource({
 6  Name = "Pioneer 10/11 Models",
 7  Type = "HttpSynchronization",
 8  Identifier = "pioneer_10_11_model",
 9  Version = 3
10})
11
12
13local ModelRenderable = {
14  Type = "RenderableModel",
15  GeometryFile = modelFolder .. "pioneer.fbx",
16  LightSources = {
17    sun.LightSource,
18    {
19      Identifier = "Camera",
20      Type = "CameraLightSource",
21      Intensity = 0.5
22    }
23  }
24}
25
26asset.export("PioneerModel", ModelRenderable)
27
28
29
30asset.meta = {
31  Name = "Pioneer Model",
32  Version = "1.0",
33  Description = [[Pioneer model asset. Used by both pioneer 10 and pioneer 11 asset.
34    Untextured version of model from NASA 3D resources]],
35  Author = "NASA",
36  URL = "https://nasa3d.arc.nasa.gov/detail/eoss-pioneer",
37  License = "NASA"
38}