Howto:Shader programming in FlightGear: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 346: Line 346:


= A Practical Application in [[Flightgear]] =
= A Practical Application in [[Flightgear]] =
 
[[File:ALS Secondary Light Proof of Concept.png|640px|ALS Secondary Light Proof of Concept]]
== ALS Landing Lights - Spotlight ==
== ALS Landing Lights - Spotlight ==
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.
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.
Line 352: Line 352:
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.
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]]
The list might include
*runway
*runway
*terrain
*terrain
330

edits

Navigation menu