P3D shader fix for Night lighting

Locked
User avatar
Slayer
Posts: 1517
Joined: Sat Mar 08, 2014 3:26 am
Contact:
P3D shader fix for Night lighting

Post by Slayer » Thu Jun 25, 2020 9:39 pm

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 2706 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 2706 times
This is reposted from the T-38C support forum as that aircraft is affected as well


Locked

Return to “Pilatus PC-6 Support Forum”