NikolaiVChr / flightgear-saab-ja-37-viggen

Saab 37 Viggen for Flightgear flight simulator
http://wiki.flightgear.org/Saab_37_Viggen
GNU General Public License v2.0
26 stars 15 forks source link

Model shader #146

Closed colingeniet closed 3 years ago

colingeniet commented 3 years ago

I'm trying to understand what the effect model-combined-fuselage.eff does, that is what are the differences with the FGData shaders it is based on. I'd like to as many custom shaders as possible, to make it simpler to maintain them, notably with FG Compositor addition.

For reference correspondence with FGData files is as follows:

Changes from FGData for the non-ALS pipeline:

Thus, regarding the non-ALS pipeline, I think we can revert to FGData shaders after doing the following:

I will look at the ALS pipeline after that.

NikolaiVChr commented 3 years ago

ambient-factor does not exist in fgdata. Its used to control the ambient occlusion map, which also does not exist in fgdata. The reason for using that special DDS compression of the normal map, is to remove ugly artifacts that you get with PNG and normal DDS. fgdata has really bad low-light and moon light, this shader takes care of that. fgdata has 2 specular spots even during daytime, its wildly unrealistic and look really bad. The reflection map blending is done not good in fgdata, its much better in this shader, and removes the need for <ambient-correction> parameter. fgdata does not have metallic specular spots, this shader has.