Merge branch 'master' of git://gitorious.org/fg/fgdata
This commit is contained in:
commit
9c3fd34f04
3 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,8 @@
|
||||||
var set_runway_from_metar_wind = func {
|
var set_runway_from_metar_wind = func {
|
||||||
if (!getprop("/environment/params/real-world-weather-fetch"))
|
if (!getprop("/environment/realwx/enabled"))
|
||||||
return printlog("info", "metar-rwy: no live weather");
|
return printlog("info", "metar-rwy: no live weather");
|
||||||
|
if (!getprop("/environment/metar/valid"))
|
||||||
|
return printlog("info", "metar-rwy: no valid metar");
|
||||||
if (!getprop("/sim/startup/options/airport"))
|
if (!getprop("/sim/startup/options/airport"))
|
||||||
return printlog("info", "metar-rwy: no airport requested");
|
return printlog("info", "metar-rwy: no airport requested");
|
||||||
if (getprop("/sim/startup/options/runway"))
|
if (getprop("/sim/startup/options/runway"))
|
||||||
|
|
|
@ -34,7 +34,7 @@ float ray_intersect(sampler2D reliefMap, vec2 dp, vec2 ds)
|
||||||
for(int i = 0; i < linear_search_steps - 1; ++i)
|
for(int i = 0; i < linear_search_steps - 1; ++i)
|
||||||
{
|
{
|
||||||
depth += size;
|
depth += size;
|
||||||
float t = texture2D(reliefMap, dp + ds * depth).a;
|
float t = step(0.95, texture2D(reliefMap, dp + ds * depth).a);
|
||||||
if(best_depth > 0.996)
|
if(best_depth > 0.996)
|
||||||
if(depth >= t)
|
if(depth >= t)
|
||||||
best_depth = depth;
|
best_depth = depth;
|
||||||
|
@ -46,7 +46,7 @@ float ray_intersect(sampler2D reliefMap, vec2 dp, vec2 ds)
|
||||||
for(int i = 0; i < binary_search_steps; ++i)
|
for(int i = 0; i < binary_search_steps; ++i)
|
||||||
{
|
{
|
||||||
size *= 0.5;
|
size *= 0.5;
|
||||||
float t = texture2D(reliefMap, dp + ds * depth).a;
|
float t = step(0.95, texture2D(reliefMap, dp + ds * depth).a);
|
||||||
if(depth >= t)
|
if(depth >= t)
|
||||||
{
|
{
|
||||||
best_depth = depth;
|
best_depth = depth;
|
||||||
|
|
|
@ -148,6 +148,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
</headshake>
|
</headshake>
|
||||||
<crop-shader userarchive="y">0</crop-shader>
|
<crop-shader userarchive="y">0</crop-shader>
|
||||||
<landmass-shader userarchive="y">0</landmass-shader>
|
<landmass-shader userarchive="y">0</landmass-shader>
|
||||||
|
<transition-shader userarchive="y">0</transition-shader>
|
||||||
<water-shader userarchive="y">0</water-shader>
|
<water-shader userarchive="y">0</water-shader>
|
||||||
<urban-shader userarchive="y">0</urban-shader>
|
<urban-shader userarchive="y">0</urban-shader>
|
||||||
<contrail-shader userarchive="y">0</contrail-shader>
|
<contrail-shader userarchive="y">0</contrail-shader>
|
||||||
|
|
Loading…
Add table
Reference in a new issue