Hi, I'm migrating Metin2 completely to shader, and inevitably, a lot of files/code are wasted in the process, and I end up removing them all.
Yesterday, while migrating the contents of GrpScreen.cpp to shader, I noticed the ScreenFilter.cpp file. It's a tiny, unused file that was sitting there, but disabled.
I looked into it a bit and discovered that it filters the screen by coloring it. Of course, it doesn't work in its current state, and ymir disables it by setting it to FALSE.
I tried enabling it by setting it to TRUE, but it didn't work because the render function is broken. They also used incorrect values in the pack. In short, after some effort, I finally got it working. Since these codes were of no use to me, and since I was already doing this with shaders, I wanted to fix them and share them with anyone who wants to use them instead of deleting the file directly.
The steps are short and simple. However, be careful.
You can use it for any purpose you want. It's up to your imagination. I hope it works on DirectX 8 too but I'm not sure. Tested on DirectX 9 and no issues were found.
"I apologize for my bad English."
[Hidden Content]
Final(Map C1):
Original and Filtering