Factorio Prototype DocsVersion 2.1.24

WaterTileEffectParameters - Prototype Docs

WaterTileEffectParameters :: struct changed

Properties

shader_variation optional :: EffectVariation
noise_texturesnew optional :: array[EffectTexture]

Shader variants "water" and "wetland-water" must have 1 texture, and "lava" and "oil" must have 2 textures.

Shader variants "water" and "wetland-water" must have 1 texture, and "lava" and "oil" must have 2 textures.

image_texturesnew optional :: array[EffectArrayTexture]

The image is split into 512x512 slices which are used as randomly chosen variations. [...]

The image is split into 512x512 slices which are used as randomly chosen variations. [...]

specular_lightness :: Color

Affects specular lightness for "water" shader_variation. [...]

Affects specular lightness for "water" shader_variation. [...]

foam_color :: Color

Affects foam color for "water" shader_variation. [...]

Affects foam color for "water" shader_variation. [...]

foam_color_multiplier :: float

Multiplies the rgb values of foam_color before they are passed to the shader.

Multiplies the rgb values of foam_color before they are passed to the shader.

tick_scale :: float

Affects distortion speed for "water" shader_variation. [...]

Affects distortion speed for "water" shader_variation. [...]

animation_speed :: float

Affects distortion speed for "water" shader_variation. [...]

Affects distortion speed for "water" shader_variation. [...]

animation_scale :: float or {float, float}

Affects animation scale for "water" shader_variation. [...]

Affects animation scale for "water" shader_variation. [...]

dark_threshold :: float or {float, float}

Affects dark threshold for "water" shader_variation. [...]

Affects dark threshold for "water" shader_variation. [...]

reflection_threshold :: float or {float, float}

Affects reflection threshold for "water" shader_variation. [...]

Affects reflection threshold for "water" shader_variation. [...]

specular_threshold :: float or {float, float}

Affects specular threshold for "water" and "wetland-water" shader_variations. [...]

Affects specular threshold for "water" and "wetland-water" shader_variations. [...]

near_zoom optional :: float

If they are set to a tuple, the properties animation_scale, dark_threshold, reflection_threshold and specular_threshold are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between near_zoom and far_zoom. [...]

If they are set to a tuple, the properties animation_scale, dark_threshold, reflection_threshold and specular_threshold are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between near_zoom and far_zoom. [...]

far_zoom optional :: float

If they are set to a tuple, the properties animation_scale, dark_threshold, reflection_threshold and specular_threshold are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between near_zoom and far_zoom. [...]

If they are set to a tuple, the properties animation_scale, dark_threshold, reflection_threshold and specular_threshold are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between near_zoom and far_zoom. [...]

lightmap_alpha optional :: float

Value 0 makes water appear as water in water mask, but does not occlude lights, and doesn't overwrite lightmap alpha drawn to pixel previously (by background layer of tile transition, or underwater sprite). [...]

Value 0 makes water appear as water in water mask, but does not occlude lights, and doesn't overwrite lightmap alpha drawn to pixel previously (by background layer of tile transition, or underwater sprite). [...]

Properties

shader_variation :: EffectVariation optional

Default: "water"

noise_textures :: array[EffectTexture] optional new

Shader variants "water" and "wetland-water" must have 1 texture, and "lava" and "oil" must have 2 textures.

image_textures :: array[EffectArrayTexture] optional new

The image is split into 512x512 slices which are used as randomly chosen variations.

Shader variant "water" must have 0 textures, "lava" and "wetland-water" must have 1 texture, and "oil" must have 2 textures.

specular_lightness :: Color

Affects specular lightness for "water" shader_variation. Affects panning/warping vector for all other shader_variations.

Any alpha value set here is ignored and will always be 1 in the shader.

foam_color :: Color

Affects foam color for "water" shader_variation. Affects panning/warping vector for all other shader_variations.

Any alpha value set here is ignored and will always be 1 in the shader.

foam_color_multiplier :: float

Multiplies the rgb values of foam_color before they are passed to the shader.

tick_scale :: float

Affects distortion speed for "water" shader_variation. Affects panning/warping speed for all other shader_variations.

animation_speed :: float

Affects distortion speed for "water" shader_variation. Affects panning/warping speed for all other shader_variations.

animation_scale :: float or {float, float}

Affects animation scale for "water" shader_variation. Affects warp effect intensity for "lava" shader_variation. Affects depth contrast for "wetland-water" shader_variation. Affects thin film effect intensity for "oil" shader_variation.

dark_threshold :: float or {float, float}

Affects dark threshold for "water" shader_variation. Affects brightness of the shoreline lava for "lava" shader_variation. Affects water depth for "wetland-water" shader_variation. Affects thin film effect noise scale for "oil" shader_variation.

reflection_threshold :: float or {float, float}

Affects reflection threshold for "water" shader_variation. Affects distortion scale for "lava" shader_variation. Affects distortion tiling for "wetland-water" shader_variation. Affects distortion map scale for "oil" shader_variation.

specular_threshold :: float or {float, float}

Affects specular threshold for "water" and "wetland-water" shader_variations. Affects shoreline lava for "lava" shader_variation. Affects nothing for "oil" shader_variation.

near_zoom :: float optional

Default: 2.0

If they are set to a tuple, the properties animation_scale, dark_threshold, reflection_threshold and specular_threshold are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between near_zoom and far_zoom. E.g. if current zoom level is equal to near_zoom, the first tuple value is picked.

far_zoom :: float optional

Default: 0.5

If they are set to a tuple, the properties animation_scale, dark_threshold, reflection_threshold and specular_threshold are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between near_zoom and far_zoom. E.g. if current zoom level is equal to far_zoom, the second tuple value is picked.

lightmap_alpha :: float optional

Default: 1

Value 0 makes water appear as water in water mask, but does not occlude lights, and doesn't overwrite lightmap alpha drawn to pixel previously (by background layer of tile transition, or underwater sprite). Light emitted by water-like-tile (for example lava) will blend additively with previously rendered light. Value 1 makes water occlude lights, but won't be recognized as water in water mask used for masking decals by water.

Fulltext search

Prototypes

Types

Defines

Fulltext search for