Hello everybody!
I want to know how to edit enblighting.fx, because Directx 2.0 use very high shaders & sky lighting even in medium and very low settings, and this cause much lag,but i want to keep somethings such as clouds,stars,moon and puddles..ect that doesn't cause lag for me . I also saw someone who already did that and kept only clouds from (enblighting.fx).
soo i want to know how to edit enblighting.fx to remove high shaders and sky lighting.
can anybody tell me how to do this please?
How to edit enblighting.fx in (Directx 2.0) enb?
- Author
- Message
-
Offline
- *blah-blah-blah maniac*
- Posts: 17545
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: How to edit enblighting.fx in (Directx 2.0) enb?
No idea, you should ask author of the preset, i just made ENBSeries code and base file of that shader for editing. Maybe it have some preprocessor definitions inside to turn on/off some of effects easily without bother to learn shader code. Just open it in text editor and search if there something suspicious lines like:
#define CLOUDS_ENABLE
and removing them or wriring like this:
//#define CLOUDS_ENABLE
would disable clouds, as example. Make backup copy of this file and do experiments checking the result in the game after changes.
#define CLOUDS_ENABLE
and removing them or wriring like this:
//#define CLOUDS_ENABLE
would disable clouds, as example. Make backup copy of this file and do experiments checking the result in the game after changes.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 9
- Joined: 19 Aug 2019, 05:35
Re: How to edit enblighting.fx in (Directx 2.0) enb?
thanks for replying.ENBSeries wrote:No idea, you should ask author of the preset, i just made ENBSeries code and base file of that shader for editing. Maybe it have some preprocessor definitions inside to turn on/off some of effects easily without bother to learn shader code. Just open it in text editor and search if there something suspicious lines like:
#define CLOUDS_ENABLE
and removing them or wriring like this:
//#define CLOUDS_ENABLE
would disable clouds, as example. Make backup copy of this file and do experiments checking the result in the game after changes.
firstly there is no preprocessor definitions inside to turn on/off, it's very complicated. It's not easy like enbseries.ini editing. Also in Directx 2.0 enb it's not allowed to Disable high shadows and sky lighting from enb.ini file, but you can remove it from enblighting.fx file which contains many complicated codes that i don't understand how to deal with.
I just want to remove the high shaders and skylights like someone who disabled it and kept clouds on. I tried to contact with this person but he isn't online yet and maybe he won't reply my message, so i posted my request here.
Can i show you both enblighting.fx (one with shaders/one without shaders) codes and maybe you can know the way of removing effects and help me?
-
Offline
- *blah-blah-blah maniac*
- Posts: 17545
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: How to edit enblighting.fx in (Directx 2.0) enb?
Sorry, i prefer to avoid someone else code, it usually takes too much time to understand what is going on there. You can try to post on pastebin.com or some file sharing host, but most likely i will drop it if not easy for me to find.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 9
- Joined: 19 Aug 2019, 05:35
Re: How to edit enblighting.fx in (Directx 2.0) enb?
There you go..ENBSeries wrote:Sorry, i prefer to avoid someone else code, it usually takes too much time to understand what is going on there. You can try to post on pastebin.com or some file sharing host, but most likely i will drop it if not easy for me to find.
this is original enblighting.fx
https://pastebin.com/ju1gRL8g
and this is the edited one in which high shaders and lighting removed
https://pastebin.com/qpN9wSBn
if you understand it, then tell me how to creat or edit that file to remove high shaders and lihgting keeping clouds,stars and moon enabled. thanks!
-
Offline
- *blah-blah-blah maniac*
- Posts: 17545
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: How to edit enblighting.fx in (Directx 2.0) enb?
That shader only have clouds, nothing else to disable. If you remove this shader and performance get much better, then you have to sacrifice clouds or ask Makarus to reduce quality to get performance back. If this file not causing performance drop, then edit enbseries.ini (from in-game editor) to see what is heavy and disable or lower quality.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 9
- Joined: 19 Aug 2019, 05:35
Re: How to edit enblighting.fx in (Directx 2.0) enb?
Hey mate, i wanna say thank you for your interesting and efforts and trying to help people like me I really appreciate that. I gave up trying to edit (enblighting.fx) because it's really really complicated and i can't do something with these codes or contact with Makarus, anyway thanks and i got a last question...ENBSeries wrote:That shader only have clouds, nothing else to disable. If you remove this shader and performance get much better, then you have to sacrifice clouds or ask Makarus to reduce quality to get performance back. If this file not causing performance drop, then edit enbseries.ini (from in-game editor) to see what is heavy and disable or lower quality.
Can I merge or mix effects of two enbs with different d3d9.dll files?
For example: can I enable water from (enb v0.369 or directx 2.0) to another enb series such as (MMGE 2.0 or Freezln) enb by using effects of both d3d9.dll files at same time?
Also can I take cars reflection from MMGE2.0 to Directx 2.0?? and using both enb d3d9.dll files at same time?
If so tell me how to do that..
Thanks again for trying to help me.. and waiting your reply.
-
Offline
- *blah-blah-blah maniac*
- Posts: 17545
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: How to edit enblighting.fx in (Directx 2.0) enb?
It depends from the code of external shaders, technically yes, you can simply replace enbwater and enbvehicle shaders, but preset makers may use custom hacks in those shaders to process data later, for example make some masks for water and vehicles. If i remember, Makarus tried to compute reflections of cars not in enbvehicle, but in post process, so in this case replacing shaders not work. You can try, nothing bad happen, if not work simply replace file back.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
-
Offline
- Posts: 9
- Joined: 19 Aug 2019, 05:35
Re: How to edit enblighting.fx in (Directx 2.0) enb?
Hello mate how are youENBSeries wrote:It depends from the code of external shaders, technically yes, you can simply replace enbwater and enbvehicle shaders, but preset makers may use custom hacks in those shaders to process data later, for example make some masks for water and vehicles. If i remember, Makarus tried to compute reflections of cars not in enbvehicle, but in post process, so in this case replacing shaders not work. You can try, nothing bad happen, if not work simply replace file back.
Can you tell me how/where can i contact with Makarus?
-
Offline
- *blah-blah-blah maniac*
- Posts: 17545
- Joined: 27 Dec 2011, 08:53
- Location: Rather not to say
Re: How to edit enblighting.fx in (Directx 2.0) enb?
Try facebook, i chatted with him there, but seems not often reply.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7