Hi devs!
Here is the water pollution layer, that changes the color of water.
Please see screenshot:
I've made a mod, that makes pollution isolines. Of course, I want to make isobands too. I am not happy with my isolines right now.
Is it possible to read vanilla isobands for polluted water?
Get pollution isobands
Get pollution isobands
- Attachments
-
- SmogVisualPollution_1.2.11.zip
- (14.66 KiB) Downloaded 110 times
Re: Get pollution isobands
I don't understand the request. Pollution is a simple value per chunk; we don't store any other information than that. The water coloring is done purely in a shader based off those values.
If you want to get ahold of me I'm almost always on Discord.
Re: Get pollution isobands
The original mod Smog Visual Pollution also uses just values per chunk. All users ask better graphics, the edge between chunks is too visible.Rseding91 wrote: Mon Jan 25, 2021 4:47 pm I don't understand the request. Pollution is a simple value per chunk; we don't store any other information than that. The water coloring is done purely in a shader based off those values.

My idea was to cut the pollution squares to pollution isobands. I've made isolines, but sometimes by random-chunk-update they are not connected anymore.
I've noticed that the vanilla's green water pollution is almost the same as
Re: Get pollution isobands
They just calculate interpolated value for every pixel.
Unfortunately, draw functions accepts only a single color. So, mods can't do anything like that. If draw_polygon() would accept per-vertex colors and would be able to interpolate between them, your mod can just draw chunk-sized rectangles (just as it does now) and get nice smooth overlay.
-
- Inserter
- Posts: 43
- Joined: Sat Aug 06, 2016 11:48 am
- Contact:
Re: Get pollution isobands
Please DEVs, give us some mod technology that can nicely color the polluted air like game colors water!