Lights
- : creates a point light
Entity Component Light point_light
A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
Schemacolor
Vector3
Default: [1,1,1]
intensity
Float
Default: 1
isDirectional
Boolean
Default: false
isSun
Boolean
Default: false
range
Float
Default: 0
+
: creates shadows (shadow map is a cubemap (adds 6 cameras))Entity Component Shadow caster shadow_caster
Enables a light to cast shadows.
SchemaaccumulateShadowCascades
Boolean
Default: true
bias
Float
Default: 0.004
cascadeCount
Byte
Default: [4] Quad Cascade
[0] Static Shadow Map [1] Single Cascade [2] Dual Cascade [3] Triple Cascade [4] Quad Cascade
cascadeSplitLambda
Float
Default: 0.94
farDist
Float
Default: 100
nearDist
Float
Default: 0.1
quality
Integer
Default: [1024] Low (1024x1024)
[256] Ultra-Low (256x256) [512] Very Low (512x512) [1024] Low (1024x1024) [2048] Medium-Low (2048x2048) [3072] Medium (3072x3072) [4096] Medium High (4096x4096) [6144] High (6144x6144) [8192] Ultra High (8192x8192)
- ,
Entity Component Light point_light
A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
Schemacolor
Vector3
Default: [1,1,1]
intensity
Float
Default: 1
isDirectional
Boolean
Default: false
isSun
Boolean
Default: false
range
Float
Default: 0
: creates a spot lightEntity Component Spot Light spot_light
Adds a cutoff to a point light to simulate a spot light.
SchemaIESProfile
Asset UUID
cutoff
Float
Default: 30
+
: creates shadows (one camera)Entity Component Shadow caster shadow_caster
Enables a light to cast shadows.
SchemaaccumulateShadowCascades
Boolean
Default: true
bias
Float
Default: 0.004
cascadeCount
Byte
Default: [4] Quad Cascade
[0] Static Shadow Map [1] Single Cascade [2] Dual Cascade [3] Triple Cascade [4] Quad Cascade
cascadeSplitLambda
Float
Default: 0.94
farDist
Float
Default: 100
nearDist
Float
Default: 0.1
quality
Integer
Default: [1024] Low (1024x1024)
[256] Ultra-Low (256x256) [512] Very Low (512x512) [1024] Low (1024x1024) [2048] Medium-Low (2048x2048) [3072] Medium (3072x3072) [4096] Medium High (4096x4096) [6144] High (6144x6144) [8192] Ultra High (8192x8192)
- with:
Entity Component Light point_light
A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
Schemacolor
Vector3
Default: [1,1,1]
intensity
Float
Default: 1
isDirectional
Boolean
Default: false
isSun
Boolean
Default: false
range
Float
Default: 0
-
isDirectional=true: creates a directional light -
isSun=true: creates a sun +
: creates shadows (shadow cascades)Entity Component Shadow caster shadow_caster
Enables a light to cast shadows.
SchemaaccumulateShadowCascades
Boolean
Default: true
bias
Float
Default: 0.004
cascadeCount
Byte
Default: [4] Quad Cascade
[0] Static Shadow Map [1] Single Cascade [2] Dual Cascade [3] Triple Cascade [4] Quad Cascade
cascadeSplitLambda
Float
Default: 0.94
farDist
Float
Default: 100
nearDist
Float
Default: 0.1
quality
Integer
Default: [1024] Low (1024x1024)
[256] Ultra-Low (256x256) [512] Very Low (512x512) [1024] Low (1024x1024) [2048] Medium-Low (2048x2048) [3072] Medium (3072x3072) [4096] Medium High (4096x4096) [6144] High (6144x6144) [8192] Ultra High (8192x8192)
-