| Shader |
Article Index for Shader |
Information AboutShader |
| CATEGORIES ABOUT SHADER | |
| 3d computer graphics | |
|
A Shader in the field of Computer Graphics is a set of software instructions, which is used by the graphic resources primarily to perform Rendering effects. INTRODUCTION From a technical view a "Shader" is a part of the renderer, which is responsible for calculating the color of an object - as opposed to calculating the visibility of an object. As Graphics Processing Unit s evolved their ability to provide shading functions, the major graphics libraries such as OpenGL and DirectX began to reflect this by defining special shading functions in their API . This was introduced in the platform independent graphic library OpenGL version 1.5, and in the proprietary DirectX -Version 8. Types of shader The DirectX and OpenGL graphic libraries use three types of shader.
Unified Shader Model unifies the three aforementioned shaders in DirectX 10 . See NVIDIA faqs . As these shader types are processed within the '' Graphics Processing Unit '' pipeline, the following gives an example how they are embedded in the pipeline: Simplified graphic processing unit pipeline
PARALLEL PROCESSING Shaders are written to apply transformations to a large set of elements at a time, for example, to each pixel in an area of the screen, or for every vertex of a model. This is well suited to Parallel Processing , and most modern GPUs have a Multi-core design to facilitate this, vastly improving efficiency of processing. PROGRAMMING SHADERS Since the version 1.5, OpenGL has had a C -like Shader-Language available to it, called OpenGL Shading Language , or GLSL. There are also interfaces for the Cg shader language, developed by Nvidia, which is syntactically somewhat similar to GLSL. In DirectX, shaders are programmed with High Level Shader Language , but the types and complexity of shader programs allowed differ depending on what version of DirectX is used. The following table shows the relations between DirectX-Versions: SEE ALSO EXTERNAL LINKS
FURTHER READING
REFERENCES |
|
|