Skip to Main Content
Learning XNA 3.0
book

Learning XNA 3.0

by Aaron Reed
November 2008
Beginner content levelBeginner
510 pages
16h 24m
English
O'Reilly Media, Inc.
Content preview from Learning XNA 3.0

Summary

  • HLSL allows developers to make full use of the wide range of capabilities of the latest graphics cards.

  • In HLSL, there are two kinds of shaders: vertex shaders (which are executed once for each visible vertex in the scene) and pixel shaders (which are executed once for each pixel drawn in the scene).

  • The minimum requirement of a vertex shader is to set the position of each vertex. The minimum requirement of a pixel shader is to set the color of each pixel.

  • In HLSL, data is run first through the vertex shader, then through a rasterization process, and then through a pixel shader before finally being sent to the screen.

  • HLSL files are added to the project in the Content folder and are picked up by the content pipeline. The content pipeline compiles them, and any syntax errors will be caught at compile time.

  • Al Gore invented the Internet. I'm fairly certain he also played a big role in the creation of HLSL.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning XNA 4.0

Learning XNA 4.0

Aaron Reed
Beginning C# 7 Programming with Visual Studio 2017

Beginning C# 7 Programming with Visual Studio 2017

Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid

Publisher Resources

ISBN: 9780596154905Supplemental ContentErrata Page