Page 1 of 1

T-38C Shader tweak for cockpit lighting

Posted: Thu Apr 04, 2019 9:42 pm
by JonathanBleeker
When LM released P3D v4.4, they included a small glitch in their PBRBase shader which has resulted in old artifacts creeping into the RealLight cockpit lighting system. Fortunately, there is a workaround while we work this out with them.

First, locate your PBRBase.fx file in your sim directory\ShadersHLSL, as seen in the screenshot below. Open it with notepad.
PBRBase1.png
PBRBase1.png (100.51 KiB) Viewed 63556 times
Scroll down till line 766 (note the position of the scroll bar outlined in red). You will find the line color = GammaCorrection(color); as outlined in purple, but without the // in front of it. Copy this instruction, and paste at line 749 (outlined in blue). Then add the // in front of the original instruction at line 766. You should end up with the result in the screenshot below. Save and close and you should be good to go.
PBRBase2.png
PBRBase2.png (69.27 KiB) Viewed 63556 times

Re: T-38C Shader tweak for cockpit lighting

Posted: Fri Apr 05, 2019 10:38 am
by endl3ss
Given the subject, can we take that as a solid hint that the -C is right around the corner....? :D
Been pushing refresh on the webpage for a few weeks now :mrgreen:

Re: T-38C Shader tweak for cockpit lighting

Posted: Fri Apr 05, 2019 11:29 am
by JonathanBleeker
yes

Re: T-38C Shader tweak for cockpit lighting

Posted: Wed Apr 10, 2019 2:29 am
by Slayer
Is this still needed for 4.5? It doesn't look like the fix above is in 4.5

Re: T-38C Shader tweak for cockpit lighting

Posted: Wed Apr 10, 2019 3:58 am
by ScruffyTheMongoose
We believe that this is still needed.

Re: T-38C Shader tweak for cockpit lighting

Posted: Thu Apr 11, 2019 12:28 am
by Slayer
Just tested. That fix is still needed for 4.5 as well , line positions in the file referenced above have not changed.

Re: T-38C Shader tweak for cockpit lighting

Posted: Wed Feb 05, 2020 4:56 pm
by JonathanBleeker
This is no longer needed.