Changes

Jump to: navigation, search

Howto:Shader programming in FlightGear

1 byte added, 05:46, 13 October 2014
no edit summary
== ALS Landing Lights - Spotlight ==
[[File:ALS Secondary Light Proof of Concept.png|320px|ALS Secondary Light Proof of Concept]]The ALS Landing Lights-Spotlight (we'll call it ALS Lights from now on) is a good example for showing how to incorporate a shader effect into [[Flightgear]] as it touches many parts of the visuals we see and many parts of the coding pipeline.
In the case of ALS Lights, you have to add the effect to every visual item rendered on the screen that you want to see a light shining on. If you want it to be capable of shining on everything, you have to account for each separate item and how that item is rendered. That is a lot of code to touch.
The list might include[[File:ALS Secondary Light Proof of Concept.png|320px|ALS Secondary Light Proof of Concept]]
*runway
*terrain
}
[[File:Model on Water and Trees on Land.jpg|thumb803px|Model on Water and Trees on Land ALS Lights Effect]]
=== tree-ALS.frag ===
Some of the variable data contained in the shader program is used for other purposes and is introduced into the shader program from other property, parameter and uniform definitions not pertaining to ALS Lights.
[[File:Model on Water.jpg|thumb640px|ALS Lights Effect over model and water.]]
==== File List ====
266
edits

Navigation menu