Howto:Shader programming in FlightGear

733 bytes added, 16:33, 7 January 2015
Fragment shaders
=== Fragment shaders ===
|the fragment shader basically knows only the pixel it is about to render and whatever information is passed from the vertex shader. Based on 'where' the vertex shader says the pixel is, the rasterizer stage determines what the texture for the pixel should be.
But there are techniques to do this in a different way, for instance the water depth map uses world coordinates to look up a world texture, and the gardens would have to be drawn in a similar way.
|{{cite web |url=
|title=<nowiki>Re: [Flightgear-devel] cities in FG & how to move forward</nowiki>
|author=<nowiki>Renk Thorsten</nowiki>
{| class="wikitable"
! Input