Last Updated
February 11, 2013
Shader Programming
- Discuss the following terms
- fixed function pipeline
- Vertex shder
- Fragment shader
- Explain the effect of the modifiers "varying", "attribute" and "uniform" in GLSL.
- Why does per-pixel lighting give better results for specular reflection that per-vertex lighting?
- What is swizzling in HLSL?
- Describe how a vetex shader and a fragment shader work together to achieve "per-pixel-lighting".
- In shader lighting programming, why do we transform vertex normals using the (GL_MODELVIEW-1)T instead of just GL_MODELVIEW? Illustrate your answer with a diagram
- What is a sampler in GLSL programming
- What is the difference between a "fragment" and a"pixel" in GLSL programming?
- Outline, in pseudo-code, a shader program which will render a transformed,
textured object, with diffuse lighting.
- What is the primary responsibility of the vertex shader
- What is the primary responsibility of the fragment shader
- Explain the mechanisim by which data can be passed form the vertex shader to the fragment shader. In particular explain how the data might be modified by the GPU before it gets to the framgment shader.
© Ken Power 1996-2016