T-38C Shader tweak for cockpit lighting
-
- Posts: 3446
- Joined: Sat Mar 13, 2010 7:38 pm
T-38C Shader tweak for cockpit lighting
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.
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.
First, locate your PBRBase.fx file in your sim directory\ShadersHLSL, as seen in the screenshot below. Open it with notepad.
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.
- endl3ss
- Posts: 114
- Joined: Wed Mar 22, 2017 10:36 pm
- Location: Norway
Re: T-38C Shader tweak for cockpit lighting
Given the subject, can we take that as a solid hint that the -C is right around the corner....?
Been pushing refresh on the webpage for a few weeks now

Been pushing refresh on the webpage for a few weeks now

-
- Posts: 3446
- Joined: Sat Mar 13, 2010 7:38 pm
- Slayer
- Posts: 1517
- Joined: Sat Mar 08, 2014 3:26 am
- Contact:
Re: T-38C Shader tweak for cockpit lighting
Is this still needed for 4.5? It doesn't look like the fix above is in 4.5
-
- Posts: 200
- Joined: Wed Nov 21, 2018 9:00 pm
Re: T-38C Shader tweak for cockpit lighting
We believe that this is still needed.
- Slayer
- Posts: 1517
- Joined: Sat Mar 08, 2014 3:26 am
- Contact:
Re: T-38C Shader tweak for cockpit lighting
Just tested. That fix is still needed for 4.5 as well , line positions in the file referenced above have not changed.
-
- Posts: 3446
- Joined: Sat Mar 13, 2010 7:38 pm
Re: T-38C Shader tweak for cockpit lighting
This is no longer needed.