Page 1 of 1

P3D shader fix for Night lighting

Posted: Thu Jun 25, 2020 9:39 pm
by Slayer
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 (100.51 KiB) Viewed 2774 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 (69.27 KiB) Viewed 2774 times
This is reposted from the T-38C support forum as that aircraft is affected as well