Prototype/TileEffect: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated styling of prototype doc migration note)
(Removed old prototype docs)
 
Line 2: Line 2:


</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
{{Prototype parent}}
Used to define the parameters for the water shader.
{{Prototype TOC|tile-effect}}
== Mandatory properties ==
{{Prototype property|type|[[Types/string|string]]}}
Must be "tile-effect".
{{Prototype property|name|[[Types/string|string]]}}
Name of the tile-effect. Must be "water" since only one instances of this prototype can be defined.
{{Prototype property|specular_lightness|[[Types/Color|Color]]}}
{{Prototype property|foam_color|[[Types/Color|Color]]}}
{{Prototype property|foam_color_multiplier|[[Types/float|float]]}}
{{Prototype property|tick_scale|[[Types/float|float]]}}
{{Prototype property|animation_speed|[[Types/float|float]]}}
{{Prototype property|animation_scale|[[Types/float|float]] or [[Types/table|array]] of two [[Types/float|float]]}}
{{Prototype property|dark_threshold|[[Types/float|float]] or [[Types/table|array]] of two [[Types/float|float]]}}
{{Prototype property|reflection_threshold|[[Types/float|float]] or [[Types/table|array]] of two [[Types/float|float]]}}
{{Prototype property|specular_threshold|[[Types/float|float]] or [[Types/table|array]] of two [[Types/float|float]]}}
{{Prototype property|texture|[[Types/Sprite|Sprite]]}}
Sprite size must be 512x512.
== Optional properties ==
{{Prototype property|near_zoom|[[Types/float|float]]|2.0|optional=true}}
{{Prototype property|far_zoom|[[Types/float|float]]|0.5|optional=true}}

Latest revision as of 14:33, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/TileEffectDefinition.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.