ABSTRACT

In this entry, we will present some examples of HLSL vertex and pixel shaders that demonstrate many of the techniques discussed in other entries on 3-D graphics. These code snippets are well commented, as we intend for this code to be read. We are giving examples in HLSL for the same reason that we show code snippets in C: we expect that it will be applicable to a large number of our readers, and although we know that not every reader will be using this specific language, we think the language is sufficiently high level that many of the basic principles can be conveyed and appreciated by almost everyone.