Merge /u/dirteat/flightgear_redcut/ branch next into next
https://sourceforge.net/p/flightgear/fgdata/merge-requests/206/
Before ![]() (image error) Size: 2.6 MiB After ![]() (image error) Size: 2.7 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.2 MiB After ![]() (image error) Size: 2.3 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.3 MiB After ![]() (image error) Size: 2.4 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.5 MiB After ![]() (image error) Size: 2.6 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.3 MiB After ![]() (image error) Size: 2.4 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.2 MiB After ![]() (image error) Size: 2.3 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.3 MiB After ![]() (image error) Size: 2.4 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.4 MiB After ![]() (image error) Size: 2.4 MiB ![]() ![]() |
Before ![]() (image error) Size: 1.2 MiB After ![]() (image error) Size: 1.5 MiB ![]() ![]() |
Before ![]() (image error) Size: 1.1 MiB After ![]() (image error) Size: 1.5 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.1 MiB After ![]() (image error) Size: 2.8 MiB ![]() ![]() |
Before ![]() (image error) Size: 1.8 MiB After ![]() (image error) Size: 2.3 MiB ![]() ![]() |
Before ![]() (image error) Size: 244 KiB After ![]() (image error) Size: 313 KiB ![]() ![]() |
Before ![]() (image error) Size: 959 KiB After ![]() (image error) Size: 1.2 MiB ![]() ![]() |
Before ![]() (image error) Size: 718 KiB After ![]() (image error) Size: 941 KiB ![]() ![]() |
Before ![]() (image error) Size: 736 KiB After ![]() (image error) Size: 948 KiB ![]() ![]() |
Before ![]() (image error) Size: 2.6 MiB After ![]() (image error) Size: 2.6 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.7 MiB After ![]() (image error) Size: 2.8 MiB ![]() ![]() |
Before ![]() (image error) Size: 5.5 MiB After ![]() (image error) Size: 5.5 MiB ![]() ![]() |
Before ![]() (image error) Size: 3.4 MiB After ![]() (image error) Size: 3.5 MiB ![]() ![]() |
Before ![]() (image error) Size: 492 KiB After ![]() (image error) Size: 502 KiB ![]() ![]() |
Before ![]() (image error) Size: 2.1 MiB After ![]() (image error) Size: 2.1 MiB ![]() ![]() |
Before ![]() (image error) Size: 1.7 MiB After ![]() (image error) Size: 1.7 MiB ![]() ![]() |
Before ![]() (image error) Size: 2.1 MiB After ![]() (image error) Size: 2.1 MiB ![]() ![]() |
|
@ -61,8 +61,9 @@ void main()
|
|||
float hmap = 1.0 - nmap.a;
|
||||
nmap = texture2D(normal_texture, gl_TexCoord[0].st - 0.0005 * grad_dir * hmap * 2.0 * parallaxFactor);
|
||||
|
||||
// sanity processing for normal map when alpha is close to zero
|
||||
nmap.rgb = normalize(nmap.rgb);
|
||||
|
||||
// nmap.rgb should not be normalized, it adversely modifies N = 2 nmap - 1
|
||||
// nmap.rgb = normalize(nmap.rgb);
|
||||
//if (nmap.b < 0.0) {nmap.b = -nmap.b;}
|
||||
|
||||
vec3 N = nmap.rgb * 2.0 - 1.0;
|
||||
|
@ -125,8 +126,8 @@ void main()
|
|||
|
||||
|
||||
|
||||
|
||||
if (NdotL > 0.0) {
|
||||
// strictly positive produces visible hard cut
|
||||
if (NdotL >= 0.0) {
|
||||
color += diff_term * NdotL * (1.0-shadowTexel.a);
|
||||
NdotHV = max(dot(n, halfVector), 0.0);
|
||||
if (gl_FrontMaterial.shininess > 0.0)
|
||||
|
|
|
@ -95,8 +95,8 @@ void main()
|
|||
|
||||
|
||||
|
||||
|
||||
if (NdotL > 0.0) {
|
||||
// strictly positive produces visible hard cut
|
||||
if (NdotL >= 0.0) {
|
||||
color += diff_term * NdotL * (1.0-shadowTexel.a);
|
||||
NdotHV = max(dot(n, halfVector), 0.0);
|
||||
if (gl_FrontMaterial.shininess > 0.0)
|
||||
|
|