Pixel shader
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Pixel_shader"
.

content

A pixel shader (abbreviation PS) is a shader program, normally executed on the graphics processing unit. In OpenGL, it is referred to as the fragment shader.

Contents

Function

A pixel shader computes color (and optionally more attributes) of each rendered pixel - so the pixel shader defines how the pixels ultimately look. Pixel shaders range from very simple ones (e.g. always output the same color) to simple (e.g. read a color from a texture, apply lighting value) to complex ones that simulate bump mapping, shadows, specular highlights, translucency and other complex phenomena.

The pixel shader is executed for each pixel rendered, and independently from the other pixels. Taken in isolation, a pixel shader alone can't produce very complex effects, because it operates only on a single pixel, without any knowledge of scene's geometry or neighboring pixels. In Stream processing terms, pixel shader is a computation kernel function.

In addition to color of the pixel, the pixel shader can also alter the depth of the pixel (for Z-buffering), or output more than one color if multiple Render Targets are active.

Programming

Pixel shaders are commonly programmed in the following languages: Assembly, Cg, GLSL, HLSL.

Compatibility

Hardware

The following table shows a summary, which graphic cards i.e. which graphic chip together with which DirectX-Version supports which Pixel-Shader-Version. Graphic chips usually are fully downward compatible (3.0 chip supports 2.0, 1.1, etc.).

PS version DirectX version 3DLabs ATI Intel Matrox NVIDIA S3 Graphics SiS XGI
1.0/1.1 8.0 - - - - GeForce 3 series - Xabre-Series -
1.2 8.0a Wildcat VP - - - - - - -
1.3 8.0a - - - Parhelia series GeForce 4 Ti/Go series - Mirage 2 -
1.4 8.1 - Radeon R200 (8500-9250) - - - - - Volari V3 series (except V3XT)
2.0 9.0 Wildcat Realizm Radeon R300 (9500-9800, X300-X600) Intel GMA 900, 950, 3000, 3100 - - DeltaChrome, GammaChrome, Chrome S2x series Mirage 3, Mirage 3+ Volari V3XT, Volari V5 series, Volari V8 series, Volari 8300, Volari XP10
2.0a 9.0a - - - - - - - -
2.0b 9.0b - Radeon R420 (X700-X850) - - GeForce FX series - - -
3.0 9.0c - Radeon R520 (X1300-X1950) Intel GMA X3000 - GeForce 6 series, GeForce 7 series - - -
4.0 10 - Radeon R600 (HD 2400-HD 2900) Intel GMA X3100, X3500 - GeForce 8 series, GeForce 9 Series, GeForce 200 Series - Mirage 4 -
4.1 10.1 - Radeon R600 (HD 3xxx), Radeon R700 (HD 4xxx) - - - - - -

(Italics indicate products that are not yet available.)

See also

References

© jGames.co.uk 2007 (some content from Wikipedia under GDL ) !-- ValueClick Media 468x60 and 728x90 Banner CODE for jgames.co.uk -->
Your Ad Here