Howto:Shader programming in FlightGear: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 351: Line 351:
The ALS Landing Lights/Spotlight 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 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.


=======================
----------------------
add pipeline flow here
add pipeline flow here
=======================
----------------------


Files that are directly touched to add this effect (in alphabetical order) include
Files that are directly touched to add this effect (in alphabetical order) include
Line 373: Line 373:
   technique n="4"
   technique n="4"
     adds program shaders
     adds program shaders
      fragment model-ALS-ultra.frag & secondary_lights.frag
      fragment model-ALS-ultra.frag & secondary_lights.frag
     adds uniforms
     adds uniforms
model-default.eff
  adds properties
  technique n="5"
    adds program shaders
      fragment model-ALS-base.frag & secondary_lights.frag
    adds uniforms
runway.eff
  inherits properties from terrain-default
  technique n="2"
    adds program shaders
      fragment runway-ALS.frag & secondary_lights.frag
    adds uniforms


==============
--------------
more to follow
more to follow
==============
--------------
 


[[Category:Howto|Shader Programming in FlightGear]]
[[Category:Howto|Shader Programming in FlightGear]]
[[Category:Shader development]]
[[Category:Shader development]]
[[Category: Core developer documentation]]
[[Category: Core developer documentation]]
330

edits