CameraLightSource
Inherits LightSource
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The intensity of this light source. |
|
Value of type ‘Double’ |
Yes |
Inherited members from LightSource
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The identifier of the light source |
|
An identifier string. May not contain ‘.’, spaces, newlines, or tabs |
No |
|
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 |
|
Must name a valid LightSource type |
No |
|
Whether the light source is enabled or not. |
|
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 Description = [[Pioneer model asset. Used by both pioneer 10 and pioneer 11 asset.
33 Untextured version of model from NASA 3D resources]],
34 Author = "NASA",
35 URL = "https://nasa3d.arc.nasa.gov/detail/eoss-pioneer",
36 License = "NASA"
37}