Shader: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (adding link to new stub: shader programming in FlightGear)
(more current info)
Line 21: Line 21:


==Shaders in FlightGear==
==Shaders in FlightGear==
Currently some new shaders are available in [[CVS]], including (sun on) water reflections and snow at altitude. The random trees in the scenery are alse generated making use of 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. However they are currently being fixed for OSG.


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.
For an introduction to shader programming in FlightGear, please see [[Howto: Shader Programming in FlightGear]], which is work in progress as of 03/2010.

Revision as of 01:44, 3 September 2010

This article describes content/features that may not yet be available in the latest stable version of FlightGear (2020.3).
You may need to install some extra components, use the latest development (Git) version or even rebuild FlightGear from source, possibly from a custom topic branch using special build settings: .

This feature is scheduled for FlightGear (unknown). 10}% completed

If you'd like to learn more about getting your own ideas into FlightGear, check out Implementing new features for FlightGear.


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. However they are currently being fixed for OSG.

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