Shader: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (related content)
m (Link to howtos)
Line 20: Line 20:
Currently some new shaders are available in [[GIT]], including (sun on) water reflections, snow at altitude, the urban shader, the landmass shader, and the crop texture shader. The random trees in the scenery are alse generated making use of shaders. These are all classified as material shaders.
Currently some new shaders are available in [[GIT]], including (sun on) water reflections, snow at altitude, the urban shader, the landmass shader, and the crop texture shader. The random trees in the scenery are alse generated making use of shaders. These are all classified as material shaders.


With the switch from [[PLIB]] to [[OSG]], as of version 1.9, [[FlightGear]] lost its shadows. However they are currently being fixed for OSG.
With the switch from [[PLIB]] to [[OSG]], as of version 1.9, [[FlightGear]] lost its shadows.


The shaders can be en-/disabled through the <tt>View > Rendering Options</tt> dialog.
The shaders can be en-/disabled through the <tt>View > Rendering Options</tt> dialog.
* [[Howto: Aircraft Reflection Shader|Aircraft reflection shader]]
* [[Howto: Use the normal map effect in aircraft|Normal map]]
* [[Howto: Lightmap|Lightmap]]


==Related content==
==Related content==
* [[Howto: Aircraft Reflection Shader|Aircraft Reflection Shader]]
* [[Howto: Shader Programming in FlightGear|Shader Programming in FlightGear]]
* [[Howto: Shader Programming in FlightGear|Shader Programming in FlightGear]]

Revision as of 09:41, 13 February 2011

Image:SnowAtAltitude1.jpg Image:SnowAtAltitude2.jpg

Scenery around LFLJ with the snow effect disabled (left) and enabled (right).

Image:SnowAtAltitude1.jpg Image:SnowAtAltitude2.jpg

Scenery around TNCM with water reflections disabled (left) and enabled (right).

A shader is a set of software instructions, which is used primarily to calculate rendering effects on graphics hardware, like water reflections and shadows.

Shaders in FlightGear

Currently some new shaders are available in GIT, including (sun on) water reflections, snow at altitude, the urban shader, the landmass shader, and the crop texture shader. The random trees in the scenery are alse generated making use of shaders. These are all classified as material shaders.

With the switch from PLIB to OSG, as of version 1.9, FlightGear lost its shadows.

The shaders can be en-/disabled through the View > Rendering Options dialog.

Related content