Factorio Prototype DocsVersion 2.0.24

LightningGraphicsSet :: struct

Properties

shader_configuration optional :: array[LightningShaderConfiguration]

If not empty, enables the lightning shader.

If not empty, enables the lightning shader.

bolt_half_width optional :: float
bolt_midpoint_variance optional :: float
max_bolt_offset optional :: float
max_fork_probability optional :: float
min_relative_fork_length optional :: float
max_relative_fork_length optional :: float
fork_orientation_variance optional :: float
fork_intensity_multiplier optional :: float

Cannot be 1.

Cannot be 1.

relative_cloud_fork_length optional :: float
cloud_fork_orientation_variance optional :: float
min_ground_streamer_distance optional :: float
max_ground_streamer_distance optional :: float
ground_streamer_variance optional :: float
cloud_forks optional :: uint8

Cannot be 255.

Cannot be 255.

cloud_detail_level optional :: uint8

Must be less than or equal to bolt_detail_level.

Must be less than or equal to bolt_detail_level.

bolt_detail_level optional :: uint8
cloud_background optional :: Animation
explosion optional :: AnimationVariations
attractor_hit_animation optional :: Animation
ground_streamers optional :: array[Animation]
light optional :: LightDefinition

Properties

shader_configuration :: array[LightningShaderConfiguration] optional

If not empty, enables the lightning shader.

LightningShaderConfiguration :: struct

Properties

color :: Color

distortion :: float

thickness :: float

power :: float

bolt_half_width :: float optional

Default: 0.005

bolt_midpoint_variance :: float optional

Default: 0.05

max_bolt_offset :: float optional

Default: 0.35

max_fork_probability :: float optional

Default: 0.9

min_relative_fork_length :: float optional

Default: 0.5

max_relative_fork_length :: float optional

Default: 0.7

fork_orientation_variance :: float optional

Default: 0.05

fork_intensity_multiplier :: float optional

Default: 0.7

Cannot be 1.

relative_cloud_fork_length :: float optional

Default: 0.2

cloud_fork_orientation_variance :: float optional

Default: 0.015

min_ground_streamer_distance :: float optional

Default: 2

max_ground_streamer_distance :: float optional

Default: 4

ground_streamer_variance :: float optional

Default: 1

cloud_forks :: uint8 optional

Default: 5

Cannot be 255.

cloud_detail_level :: uint8 optional

Default: 3

Must be less than or equal to bolt_detail_level.

bolt_detail_level :: uint8 optional

Default: 6

cloud_background :: Animation optional

explosion :: AnimationVariations optional

attractor_hit_animation :: Animation optional

ground_streamers :: array[Animation] optional

light :: LightDefinition optional

Prototypes

Types

Defines