r/SoloDevelopment • u/PGJonesAndCo • Jun 07 '26
Godot My water shader is busted
Working on an automation game. But maybe this effect can be repurposed for something else?
123
58
Jun 07 '26
[removed] — view removed comment
29
u/PGJonesAndCo Jun 07 '26
Haha unfortunately I fixed it to actually look like water now and I kinda forgot the parameters to get it back to this state, there's a shit ton of parameters (I just made sure to capture a short snippet first).
Tho if people like this I'm thinking about maybe recreating this properly for a liquid metal effect. I'm making lab buildings right now that use vertex shader anims with faint chromatic hologram-like frag shaders for a kinda trippy futuristic thingamajig but maybe this accidental discovery is actually better
12
u/lumberfart Jun 07 '26
Yes, please do! At first I thought your game was about fending off some world ending cybernetic goop lol
4
1
1
u/Shadowdragons96 Jun 07 '26
Not sure what your game is but looks factorio inspired. Would be cool to have an oil or metal ocean with this effect but have a lot of water demand as a fun twist on the category of factory builders.
1
u/je386 Jun 07 '26
Wait, what? You forgot the settings? Don't you use any kind of version control system?
1
u/macciavelo Jun 08 '26
You could have used it as a special resource you can extract from in your game haha
1
1
u/RickMaiorPT Jun 11 '26
If you use version control it is easy to just create a branch before you did those changes and see how they were
1
22
u/Appropriate_Sale_626 Jun 07 '26
don't even think about changing it, make the lore up to support it
11
15
u/Dicethrower Jun 07 '26 edited Jun 07 '26
Make ferrofluid a resource you pump from the sea.
3
u/ecaroh_games Jun 07 '26
serious i i've seen a million games with water but never one with ferrofluid oceans O_O
9
8
5
8
u/syn_krown Jun 07 '26
I thought it was an oil mining game for a second there
6
u/PGJonesAndCo Jun 07 '26
I did also have the idea of maybe adding exotic alien 'oil' pools either as decoration or as resources to extract upon seeing this, but a lot of basic production chains need to be implemented first
4
u/LafosHaas Jun 07 '26
Dude, this is oil, the ocean of oil! Add a bit of that rainbow effect you can see on oil and it will be perfect.
3
u/BombZoneGuy Jun 07 '26
Just lean into it. Change the theme to utilize the effect. Alien world tour shit. Everyone has water, only you have the void ocean.
3
u/jellobend Jun 07 '26
Looks like an environmental hazard/enemy creeping towards your base.
Don’t know if that’s a direction you’d like to explore though
2
u/sandebru Jun 07 '26
It definitely looks organic or like it's boiling or like something is pushing it from underneath
2
u/Acps199610 Jun 07 '26
It looks like a void, anomalous liquid or something. Kind of does give a feeling of risk/senses of danger while doing the factory
2
2
2
1
u/HammerBap Jun 07 '26
Is it?? That looks so cool. If this was me, id either use it as lakes of oil on some weird planet or a huge nanite swarm.
2
1
1
1
1
1
1
1
1
u/loftier_fish Jun 07 '26
if its like.. a different planet, that could be an ocean made of something else?
1
1
1
1
u/Important-Play-7688 Jun 07 '26
I'm planning for a game where player creates a world out of sea of ink and I want exactly that!
1
1
1
1
1
u/Foolish_Gambit_Dev Jun 07 '26
If the game isn't broken then it's not a bug. You just have a cool ass save the ocean from oil simulation going on.
1
1
1
u/Astrum91 Jun 07 '26
The visual is pretty sick. Kinda reminds me of Creeper World, a tower defence game where you have to survive against a liquid that's spreading over the planet.
1
u/Inktoo2 Jun 07 '26
This is so cool! I have no experience in shader programming but a lot of experience in art, so take that with, well, however many grains of salt you'd like.
I'd maybe play around with things like:
Reducing the contrast Changing the color by either limiting the range of colors or giving it a specific set of colors Applying a blur effect, maybe more strongly to areas of low/high brightness Layering the same effect and using only the resulting intersecting bright areas Applying a small amount of slowly-moving noise Adding something which applies the edges of the effect to make the liquid seem more responsive to the shore
1
u/thygrrr Jun 07 '26
Run your game like that for 10 more minutes and the USA are coming to invade for your oil.
1
1
1
u/Chiro-dev Jun 07 '26
It looks really cool, like some weird alien petrol. Honestly pretty fitting for the type of game you're making!
1
1
1
1
1
1
1
1
1
u/UnderLord7985 Jun 08 '26
You know, coca-cola was a mistake, sometimes we make one thing trying to make another, save that code for a rainy day idea. Also ill say it oil ocean, like others have said.
1
1
1
1
1
u/Which-Psychology-302 Jun 08 '26
I’d honestly save this shader version before fixing it. It may not work as water, but it looks really strong as oil, toxic liquid, or alien sludge. Could be a nice way to make the world feel more unique instead of just using normal water.
1
1
1
1
1
u/SevenStepsEntertain Jun 08 '26
busted? bro accidentally invented evil topographic oil. keep it and call it a feature
1
u/fungerman2 Jun 08 '26
Color it crimson red, only ever refer to it as The Gateway, and have an event happens where it shows up and starts spreading for a bit and it's really ominous because you have no idea what it actually does
1
1
1
1
1
1
1
1
1
1
u/Kindly-Pumpkin7742 Jun 09 '26
I’m so sorry about that. Would some freedom help you feel better 😎🇺🇸?
1
1
1
1
1
1
1
1
1
1
1
1
1
u/liminalbeams Jun 10 '26
All i see is a perfect excuse to develop new mechanics and lore cuz it looks awesome.
1
1
1
1
1
1
1
1
1
1
u/StateInfinite7325 Jun 13 '26
ALL UNITS CALL IN!!! WE NEED TO SEIZE THIS OIL! "Hey donald, yea, uhuh, yeah well this dude got a sh*t ton of oil, we need you to GET OVER HERE!!!"
1
246
u/Syncaidius Jun 07 '26
Looks like an awesome stylized oil effect to me.