"Per-Fragment Lighting" describes the differences between per-vertex and per-fragment lighting and shows you how to implement per-fragment lighting.This section also goes through a step-by-step implementation of this lighting model in a vertex program. "Implementing the Basic Per-Vertex Lighting Model" presents a simplified version of the lighting model used in OpenGL and Direct3D."Lighting and Lighting Models" explains the importance of lighting and introduces the concept of a lighting model.This chapter has the following five sections: Then, we gradually add functionality to the basic model to make it more useful in common situations. We start by building a simplified version of a commonly used lighting model. This chapter shows you how to illuminate the objects in your scenes with light sources. Please visit our Recent Documents page to see all the latest whitepapers and conference presentations that can help you with your projects. You can purchase a beautifully printed version of this book, and others in the series, at a 30% discount courtesy of InformIT and Addison-Wesley. The Cg Tutorial The Cg Tutorial is now available, right here, online.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |