Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Brighter terrain, darker cloud shadows - DONE!

Featured Replies

  • Commercial Member

I was searching for some shader tweaks, stumbled upon on some russian forum, and found this amazing tweak how to get brighter terrain and darker cloud/terrain shadows.

 

Dwm%202016-04-07%2013-19-17-52_zpsf2lnea

 

 

 

 

ATTENTION! This is for P3D v3.2! Not sure how will it work in older versions!
 
 

For all you that don't want to fiddle with shader files, you can download tweaked files here -> https://www.dropbox.com/s/4n0f364b4ecg42s/Shader%20Tweak.zip?dl=0

Copy both files to ..:\Prepar3D v3\ShadersHLSL\

 

GPUTerrain.fx is the most important file here! Cloud.fx is optional, and it will tweak the clouds to have more variety in shading, and they will appear a little more darker in dusk/dawn. 

 

Don't forget to backup original files!

 

 

Manual tweaking of GPUTerrain.fx:

 

open [Prepar3D]\ShadersHLSL\GPUTerrain.fx.
 
on line 720:
 
const float3 sunAmbient = cb_mLights[sUN_LIGHT].mAmbient.xyz * 0.1;
 
Add * 0.1 at the end, just before ; The smaller the coefficient, the darker the shadows are. 0.1 worked for me. I've tried 0.5 also, it was good also, but I like darker shadows (more realistic).
 
line 1013, shed further light on the illuminated areas:
 
const float3 finalSunColor = (sunAmbient + saturate(sunDiffuse * (sunContrib * 1.8f * shadowContrib)));// + pointLightsDiffuse);
 
add * 1.8f, the more the brighter terrain should be, I didn't experimented with other values, 1.8f is just right in my case.
 
Save the file. Delete the shader cache -> c:\Users\username\AppData\Local\Lockheed Martin\Prepar3D v3\Shaders\
 
 

Start the sim. You should probably adjust HDR Brightness to your liking, due to brighter terrain. Also take note that I was testing this with Bloom at 0 and HDR Brightness at 1.90.

 

I'm also using SweetFX to adjust contrast and hue, but I will leave that for you guys, since I'm seeing pretty different presets here and there, and some of them are pretty extreme imo.

 

---------------------

 

Video preview of the tweaks:

https://youtu.be/nd0Bzq3PFZI

 

---------------------

 

 

 

Thank you captains for you attention! I hope you will find these tweaks useful to make your sim visually more attractive. :)

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

  • Replies 247
  • Views 77.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Ahmad, are you using v3.2? The tweaks will work only in that version.     --------------------   Anyways... we are getting close! Screenshots from the early beta of the config tool. Couple more o

  • I think it's official now - the new version of the shader pack will include installer and config tool, where you can BACKUP original files, restore the files you want, choose what shader tweaks to ins

  • It took a little tweaking, but I found a config that, for my taste and setup, seems nice.   I went with 0.3 for the terrain shadows, 0.6 for the autogen shadows, and no 1.8 highlight multiplier as sug

Hmmm. Interesting. Does that darken interior cockpit shadows as well? Presumably not if it's just GPUTerrain?

  • Commercial Member

Thanks for posting this. You mention that you have Bloom set to 0. What happens if you set it to a higher number?

spacer.png

REX AccuSeason Developer

REX Simulations

  • Author
  • Commercial Member

Hmmm. Interesting. Does that darken interior cockpit shadows as well? Presumably not if it's just GPUTerrain?

 

I think that cockpit shadows stayed untouched, didn't noticed the difference.

 

Thanks for posting this. You mention that you have Bloom set to 0. What happens if you set it to a higher number?

 

It will be probably too bright and the clouds will be burned I presume.

Try with Bloom set a some default values (0.70), but don't forget to lower HDR Brightness even more. 

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

I tried your tweak.

0.7 - 0.8 it is more than enough as otherwise you will be flying in dusk with an overcast...

5950x3d 5.4-5.7 GHz - Asus ROG 870 Crosshair Apex - GSkill Neo 2x 24 Gb 6000 mhz / cas 26 -  MSI RTX 5090 Gaming Trio OC - 1x SSD M2 6000 2TB - 1x SSD M2 2800/1800 1Tb -  Corsair 5400  case - Corsair 360 liquid cooling set  - 3x 75’ TCL tv.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 

FOV : 200 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

  • Author
  • Commercial Member

I tried your tweak.

0.7 - 0.8 it is more than enough as otherwise you will be flying in dusk with an overcast...

Dint't noticed any significant difference in dawn/dusk when testing and recording a preview video.

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

I tried your tweak.

0.7 - 0.8 it is more than enough as otherwise you will be flying in dusk with an overcast...

 

Makes no sense to replace the var with a constant value for me personal ;-)

To add thanks for sharing.

 

André
 

Thanks for this.  I have a new computer on the way and will be moving into P3Dv3 so this might be something very useful.

Bryan Wallis aka "fltsimguy"

Maple Bay, British Columbia

Near CAM3

Makes no sense to replace the var with a constant value for me personal ;-)

To add thanks for sharing.

I tried it and it is working and I leave it at *0.7 as otherwise scenery gets too dark with an overcast for my taste.

5950x3d 5.4-5.7 GHz - Asus ROG 870 Crosshair Apex - GSkill Neo 2x 24 Gb 6000 mhz / cas 26 -  MSI RTX 5090 Gaming Trio OC - 1x SSD M2 6000 2TB - 1x SSD M2 2800/1800 1Tb -  Corsair 5400  case - Corsair 360 liquid cooling set  - 3x 75’ TCL tv.

13600  6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb  - 1x SSD M2 2800/1800 2TB - 2x  Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - 

FOV : 200 degrees

My flightsim vids :  https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0

 

Well the video is combined with SweetFX, which to me is torture to use. No good tutorials anywhere. 

38.jpg

Brynjar Mauseth 

Following this thread.

Angelo Cosma
PPL ASEL / IFR
Federal Aviation Administration (FAA) 

Field Service Representative (SEA) ZSE ARTCC

Intel i7 6700K 4.8Ghz / ASUS ROG Maximus Hero VIII / 16GB DDR4 3200Mhz Ram / EVGA 1080Ti FTW3/ Corsair H110i GTX EVGA 850 Watt Gold / Samsung 850 500gb SSD

  • Author
  • Commercial Member

Well the video is combined with SweetFX, which to me is torture to use. No good tutorials anywhere.

 

It will look good regardless, with or without sweetfx.

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

It will look good regardless, with or without sweetfx.

Tried it. Wasnt able to replicate the results of the video. 1.70 Brightness in HDR was way to much for me. I usually keep under 1 during daylight and lower at night. However, the ground shadows were prominent now so Im going to keep the tweak.

38.jpg

Brynjar Mauseth 

Nice!!! This along with HDR, combined with removal of the exposure adaption, which I'm still playing with, is a very good combination.

 

It will take some time to find the sweet spot, but this and the exposure lock tweak is getting close to what I've been seeking for quite some time.

 

 

Thanks Pe11e :)

  • Author
  • Commercial Member

Makes no sense to replace the var with a constant value for me personal ;-)

To add thanks for sharing.

 

It is constant regardless, default or tweaked. :)

Current system: ASUS PRIME Z690-P D4, Intel 12900k, 32GB RAM @ 3600mhz, Zotac RTX 3090 Trinity, M2 SSD, Oculus Quest 2.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.