Particle spawner distance tweens #14575
Labels
@ Client rendering
Feature request
Issues that request the addition or enhancement of a feature
@ Script API
Problem
Particle spawner allows to use different tweens for particle position/texture/size animations, but all of them are related to particle lifetime. This is useful for most cases, but sometimes it can be required for particle to fade out on far distance or close to the player, or change its size depending on distance to the player.
Solutions
Additional tween parameter that allows to switch its mode into distance instead of particle age with ability to change how distance is calculated ("cylinder" for XZ distance, "sphere" for XYZ distance, "cube" for linear distance in spawner range).
Alternatives
Alternative solution is to add custom parameters instead of tweens, or one parameter that will switch all tweens into the distance mode (that solution sounds not very good since it will restrict possible usages, but it is probably simpler to implement)
Additional context
That feature can be used for different types of weather-related rendering or visual effects. Here is an example of fog that uses fade close and far from player which adds more volume into the scene:
The text was updated successfully, but these errors were encountered: