T-38C Shader tweak for cockpit lighting

Locked
JonathanBleeker
Posts: 3446
Joined: Sat Mar 13, 2010 7:38 pm
T-38C Shader tweak for cockpit lighting

Post by JonathanBleeker » Thu Apr 04, 2019 9:42 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 63434 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 63434 times

User avatar
endl3ss
Posts: 114
Joined: Wed Mar 22, 2017 10:36 pm
Location: Norway
Re: T-38C Shader tweak for cockpit lighting

Post by endl3ss » Fri Apr 05, 2019 10:38 am

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:

JonathanBleeker
Posts: 3446
Joined: Sat Mar 13, 2010 7:38 pm
Re: T-38C Shader tweak for cockpit lighting

Post by JonathanBleeker » Fri Apr 05, 2019 11:29 am

yes

User avatar
Slayer
Posts: 1517
Joined: Sat Mar 08, 2014 3:26 am
Contact:
Re: T-38C Shader tweak for cockpit lighting

Post by Slayer » Wed Apr 10, 2019 2:29 am

Is this still needed for 4.5? It doesn't look like the fix above is in 4.5

ScruffyTheMongoose
Posts: 200
Joined: Wed Nov 21, 2018 9:00 pm
Re: T-38C Shader tweak for cockpit lighting

Post by ScruffyTheMongoose » Wed Apr 10, 2019 3:58 am

We believe that this is still needed.

User avatar
Slayer
Posts: 1517
Joined: Sat Mar 08, 2014 3:26 am
Contact:
Re: T-38C Shader tweak for cockpit lighting

Post by Slayer » Thu Apr 11, 2019 12:28 am

Just tested. That fix is still needed for 4.5 as well , line positions in the file referenced above have not changed.

JonathanBleeker
Posts: 3446
Joined: Sat Mar 13, 2010 7:38 pm
Re: T-38C Shader tweak for cockpit lighting

Post by JonathanBleeker » Wed Feb 05, 2020 4:56 pm

This is no longer needed.


Locked

Return to “Northrop T-38C General Forum”