
CHAPTER 6 ■ ADDING LIGHT TO YOUR SCENE IN XNA 3.0
522
• Makingyourscenereallycomealivebyusingmultiplelights.Sincethebasic
approaches are not scalable enough, you’ll jump into deferred rendering to add light-
inginscreenspace(recipe6-10).
• Addingshadowstoyoursceneusingtheshadowmappingtechnique.Tomakethe
chapter complete, you’ll implement this using the deferred rendering approach, allow-
ing you to have multiple lights casting shadows in your 3D world (recipe 6-11).
6-1. Define Normals and Use the BasicEffect
The Problem
Withoutcorrectlighting,yourscenewilllookalotlessrealistic.Insomecases,the3Deffect ...