Merge branch 'master' of gitorious.org:fg/fgdata
This commit is contained in:
commit
e84b5a5cb4
5 changed files with 6714 additions and 6743 deletions
|
@ -1,4 +0,0 @@
|
||||||
bin
|
|
||||||
man
|
|
||||||
sbin
|
|
||||||
.project
|
|
13440
Docs/getstart.pdf
13440
Docs/getstart.pdf
File diff suppressed because it is too large
Load diff
|
@ -46,6 +46,7 @@ $Id$
|
||||||
<command>property-scale</command>
|
<command>property-scale</command>
|
||||||
<property>/controls/flight/rudder</property>
|
<property>/controls/flight/rudder</property>
|
||||||
<factor>1.0</factor>
|
<factor>1.0</factor>
|
||||||
|
<power>2</power>
|
||||||
<offset>0.0</offset>
|
<offset>0.0</offset>
|
||||||
</binding>
|
</binding>
|
||||||
</axis>
|
</axis>
|
||||||
|
|
|
@ -34,13 +34,11 @@ void main(void)
|
||||||
gl_Position.xyz += gl_Vertex.z * w * hScale;
|
gl_Position.xyz += gl_Vertex.z * w * hScale;
|
||||||
gl_Position.xyz += gl_Color.xyz;
|
gl_Position.xyz += gl_Color.xyz;
|
||||||
|
|
||||||
|
// Apply Z scaling to allow sprites to be squashed in the z-axis
|
||||||
|
gl_Position.z = gl_Position.z * gl_Color.w;
|
||||||
|
|
||||||
// Determine a lighting normal based on the vertex position from the
|
// Determine a lighting normal based on the vertex position from the
|
||||||
// center of the cloud, so that sprite on the opposite side of the cloud to the sun are darker.
|
// center of the cloud, so that sprite on the opposite side of the cloud to the sun are darker.
|
||||||
|
|
||||||
// fix flickering of 3d clouds on some macs
|
|
||||||
// http://code.google.com/p/flightgear-bugs/issues/detail?id=123
|
|
||||||
// float n = dot(normalize(-gl_LightSource[0].position.xyz),
|
|
||||||
// normalize(mat3x3(gl_ModelViewMatrix) * (- gl_Position.xyz)));;
|
|
||||||
float n = dot(normalize(-gl_LightSource[0].position.xyz),
|
float n = dot(normalize(-gl_LightSource[0].position.xyz),
|
||||||
normalize(vec3(gl_ModelViewMatrix * vec4(- gl_Position.xyz,0.0))));
|
normalize(vec3(gl_ModelViewMatrix * vec4(- gl_Position.xyz,0.0))));
|
||||||
|
|
||||||
|
|
|
@ -326,8 +326,8 @@
|
||||||
<property>/sim/rendering/clouds3d-enable</property>
|
<property>/sim/rendering/clouds3d-enable</property>
|
||||||
</and>
|
</and>
|
||||||
</enable>
|
</enable>
|
||||||
<min>100.0</min>
|
<min>1000.0</min>
|
||||||
<max>20000.0</max>
|
<max>45000.0</max>
|
||||||
<property>/sim/rendering/clouds3d-vis-range</property>
|
<property>/sim/rendering/clouds3d-vis-range</property>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
|
|
Loading…
Add table
Reference in a new issue