Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Static flow control<br />
• One way of controlling number of lights<br />
• Usually 4 active lights is enough on any one<br />
triangle<br />
• Benefits of single-pass lighting<br />
– Greater speed than multi-pass if vertex bound<br />
• Allows more complex vertex shaders<br />
– Better precision<br />
• fp32-bit shader precision vs. 8-bit FB blender<br />
– More flexible combination of lights<br />
• Combine lights in ways FB blender doesn’t allow<br />
• Shadows are tricky<br />
– Can use pre-baked occlusion information, ei<strong>the</strong>r pervertex<br />
or with textures ( similar <strong>to</strong> lightmaps )