Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle spawner distance tweens #14575

Open
paulevsGitch opened this issue Apr 22, 2024 · 0 comments
Open

Particle spawner distance tweens #14575

paulevsGitch opened this issue Apr 22, 2024 · 0 comments
Labels
@ Client rendering Feature request Issues that request the addition or enhancement of a feature @ Script API

Comments

@paulevsGitch
Copy link

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:

2024-04-04_17 43 16

@paulevsGitch paulevsGitch added the Feature request Issues that request the addition or enhancement of a feature label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Client rendering Feature request Issues that request the addition or enhancement of a feature @ Script API
Projects
None yet
Development

No branches or pull requests

2 participants