Types/TreePrototypeVariation

From Official Factorio Wiki
Revision as of 09:32, 21 October 2020 by Bilka (talk | contribs) (→‎trunk: trunk frame_count is only restricted if shadow isnt loaded)
Jump to navigation Jump to search

Basics

Graphics definition for a Prototype/Tree.

Mandatory properties

trunk

Type: Types/Animation

If shadow is not specified, this has to have one more frame than leaves.

leaves

Type: Types/Animation

leaf_generation

Type: Types/CreateParticleTriggerEffectItem

branch_generation

Type: Types/CreateParticleTriggerEffectItem

Optional properties

shadow

Type: Types/Animation

Shadow must have 1 less frame_count than leaves (shadow.frame_count = leaves.frame_count + 1).

disable_shadow_distortion_beginning_at_frame

Type: Types/uint32

Only loaded if shadow is present. Defaults to shadow.frame_count - 1.

normal

Type: Types/Animation

Normal must have the same frame_count as leaves (normal.frame_count = leaves.frame_count).

water_reflection

Type: Types/WaterReflectionDefinition