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 wind vector and day-night cycle. #1

Closed
Lexpartizan opened this issue Dec 23, 2019 · 5 comments
Closed

Add wind vector and day-night cycle. #1

Lexpartizan opened this issue Dec 23, 2019 · 5 comments

Comments

@Lexpartizan
Copy link

I've taken out the wind direction vector in uniform and added a day and night cycle if you're interested. Thanks for your code.
You can download my project for godot with this additions here.
https://yadi.sk/d/r-GuhpJQkr3TfQ

@danilw
Copy link
Owner

danilw commented Dec 25, 2019

nice!
Tip: host it on github your code by you self, so other people can find it and use

I keep this shader as it is

@Lexpartizan
Copy link
Author

Thank you, I took Your advice. And thank you for Your wonderful shader.

Another thing. Is it possible to make so that with an increase in THICKNESS, the upper layers of the clouds are drawn first, and then the lower ones, and not vice versa, as now? Because the clouds are hanging too low, it seems that you touch their your head.

@danilw
Copy link
Owner

danilw commented Dec 26, 2019

its not "my shader"(link to original shadertoy shade linked in shader code)

my is only adaptation to Godot and my "reflection logic"...thanks anyway xD

Another thing.

check shadertoy website, there many "cloud shaders" you can learn then

also I have other "full dynamic day/night cycle" shader that almost loop-less(performance 10x faster then this one)
you can check how it look like on https://youtu.be/jTmppCifnYE
source in this project godot-utils-and-other/a_rel_bw_game

@Lexpartizan
Copy link
Author

Big Thanks for your adaptation, anyway. Without your code I would be forced to use a simple texture. Without a cycle of day and night, etc., etc. And now I have the sky, as in Morrowind, thanks to you))

Other shader looks much worse, but it can be used for cell phones. I trying them. Thanks.
And thanks for your article on Habr)) Happy New Year!

@danilw
Copy link
Owner

danilw commented Dec 27, 2019

thank
nice to know that it useful for you :)

@danilw danilw closed this as completed Dec 27, 2019
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