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

[Enhancement] Fog-like effect #30

Open
Matszwe02 opened this issue May 29, 2024 · 2 comments
Open

[Enhancement] Fog-like effect #30

Matszwe02 opened this issue May 29, 2024 · 2 comments

Comments

@Matszwe02
Copy link

I suggest adding a replacement of the post processing, maybe add another slider, to fog-like effect. I find it adding more calm and realistic look.

    if(u_post_processing) {
        //float colFade = sin(t * .2) * .5 + .5;
        //col *= mix(vec3(1.), vec3(.8, .9, 1.3), 1.);	// subtle color shift
        float contrast = 0.6;
        col = (col - 0.5) * contrast + 0.5;
    }

before

image
image

after

image
image

@rocksdanister
Copy link
Owner

That does look nice.

Could also try integrating the fog shader 🤔
https://github.com/rocksdanister/weather

@Matszwe02
Copy link
Author

Also I thought that a better idea will be to split rain texture from the image, and apply the fog into that image only (so the droplets are still high contrast). By doing so, there could be an option to apply parallax only to the image without the droplets, and I'm wondering if it will be possible to add that AI 3d parallax. And the cherry on top, could be to have the fog multiply by that parallax to have a more realistic one.
That's really large change to do, but I think that will enhance this rain screen a lot.

Wanting too much, but I also experimented with custom fps values, and 12fps looks nice (lofi-y), so maybe also add another checkbox?

Recording.2024-06-01.190919.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants