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

Add uniform for freezing effect #2434

Open
kolgushev opened this issue Aug 2, 2024 · 0 comments
Open

Add uniform for freezing effect #2434

kolgushev opened this issue Aug 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kolgushev
Copy link

Is your feature request related to a problem?
I would like to add a vignette distortion effect to my shader when players freeze in powdered snow.

Describe the solution you'd like
A uniform float currentPlayerFreezing ranging 0-1, where 0 is no freezing and 1 is taking damage from freezing (and custom health hearts texture)

Describe alternatives you've considered
The effect can be emulated by creating a custom uniform representing a smoothed isEyeInWater == 3, but this 1) doesn't scale linearly over time, and 2) doesn't work when only the player's feet are in the powdered snow.

@kolgushev kolgushev added the enhancement New feature or request label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant