The High Level Shader Language or High Level Shading Language (HLSL) is a proprietary shading language developed by Microsoft for use with the Microsoft Direct3D API. It is analogous to the GLSL shading language used with the OpenGL standard. It is the same as the Nvidia Cg shading language, as it was developed alongside it.
HLSL programs come in three forms, vertex shaders, geometry shaders, and pixel (or fragment) shaders. A vertex shader is executed for each vertex that is submitted by the application, and is primarily responsible for transforming the vertex from object space to view space, generating texture coordinates, and calculating lighting coefficients such as the vertex's tangent, binormal and normal vectors. When a group of vertices (normally 3, to form a triangle) come through the vertex shader, their output position is interpolated to form pixels within its area; this process is known as rasterisation. Each of these pixels comes through the pixel shader, whereby the resultant screen colour is calculated.
Optionally, an application using a Direct3D 10 interface and Direct3D 10 hardware may also specify a geometry shader. This shader takes as its input the three vertices of a triangle and uses this data to generate (or tessellate) additional triangles, which are each then sent to the rasterizer.
Famous quotes containing the words high, level and/or language:
“Go on, high ship, since now, upon the shore,
The snake has left its skin upon the floor.
Key West sank downward under massive clouds
And silvers and greens spread over the sea. The moon
Is at the mast-head and the past is dead.”
—Wallace Stevens (18791955)
“Insurrection:... insurrection as soon as circumstances allow: insurrection, strenuous, ubiquitous: the insurrection of the masses: the holy war of the oppressed: the republic to make republicans: the people in action to initiate progress. Let the insurrection announce with its awful voice the decrees of God: let it clear and level the ground on which its own immortal structure shall be raised. Let it, like the Nile, flood all the country that it is destined to make fertile.”
—Giuseppe Mazzini (18051872)
“It is impossible to dissociate language from science or science from language, because every natural science always involves three things: the sequence of phenomena on which the science is based; the abstract concepts which call these phenomena to mind; and the words in which the concepts are expressed. To call forth a concept, a word is needed; to portray a phenomenon, a concept is needed. All three mirror one and the same reality.”
—Antoine Lavoisier (17431794)