T-38C Shader tweak for cockpit lighting

Post Reply
JonathanBleeker
Posts: 9280
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 55383 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 55383 times
-JB

Milviz R&D Lab dev/Resident PITA Perfectionist.


Image
Please read the manual before posting. You will learn quicker than if I act as your instructor.

endl3ss
Posts: 99
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: 9280
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
-JB

Milviz R&D Lab dev/Resident PITA Perfectionist.


Image
Please read the manual before posting. You will learn quicker than if I act as your instructor.

User avatar
Slayer
Posts: 310
Joined: Sat Mar 08, 2014 3:26 am
Location: Michigan
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
Steve McNitt

System Specs:
I7 7740K, 32 GB Ram, Windows 10 x64, NVIDIA 1080GTX GPU, 3-SSD's, P3DV4.3

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

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

We believe that this is still needed.

User avatar
Slayer
Posts: 310
Joined: Sat Mar 08, 2014 3:26 am
Location: Michigan
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.
Steve McNitt

System Specs:
I7 7740K, 32 GB Ram, Windows 10 x64, NVIDIA 1080GTX GPU, 3-SSD's, P3DV4.3


Post Reply

Return to “Northrop T-38C General Forum”