Defog shader
- 04348
- Topic Author
I have a very simple idea for a shader that reduce the white fog found in many games :
add inverted depth-buffer to pixels, which darken things far from the screen, but ignore sky ( for depth-buffer completely white).
I don't know if it could work, but I made some try with Gimp and I got that :
Before : i.imgur.com/3CDXNwC.jpg 0000000 i.imgur.com/CjBoVWt.jpg
After : 00 i.imgur.com/TicPggu.jpg 00000000 i.imgur.com/6cgmb5k.jpg
Strenght of the effect and tint could be easily changed,
Maybe increase the contrast in the darkened area could give a better result
I don't have the skills to program that, and I don't even know if it's a good idea
EDIT : Okay, I get to code this shader by editing the Display-depth, but there is only one issue left : I can't get DoF effect after this shader, so it look a bit odd ^^ : i.imgur.com/vUHL44q.jpg
And I must add a curve setting too :]
Please Log in or Create an account to join the conversation.
- Kleio420
you have no depth buffer access in guild wars 204348 wrote: Hi
I have a very simple idea for a shader that reduce the white fog found in many games :
add inverted depth-buffer to pixels, which darken things far from the screen, but ignore sky ( for depth-buffer completely white).
I don't know if it could work, but I made some try with Gimp and I got that :
Before : i.imgur.com/3CDXNwC.jpg 0000000 i.imgur.com/CjBoVWt.jpg
After : 00 i.imgur.com/TicPggu.jpg 00000000 i.imgur.com/6cgmb5k.jpg
Strenght of the effect and tint could be easily changed,
Maybe increase the contrast in the darkened area could give a better result
I don't have the skills to program that, and I don't even know if it's a good idea
EDIT : Okay, I get to code this shader by editing the Display-depth, but there is only one issue left : I can't get DoF effect after this shader, so it look a bit odd ^^ : i.imgur.com/vUHL44q.jpg
And I must add a curve setting too :]
Please Log in or Create an account to join the conversation.
- 04348
- Topic Author
i.imgur.com/qtwD1hs.jpg | i.imgur.com/zVSuJcy.jpg
Now time to do some math for add more control
Edit :
When you don't move, Depth buffer work, and also : reshade.me/forum/shader-troubleshooting/...uild-wars-2?start=12you have no depth buffer access in guild wars 2
Please Log in or Create an account to join the conversation.