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.
Dynamic Flow Control - HLSL<br />
Sim<br />
for ( int i = 0; i < light_count; ++i )<br />
{<br />
// calculate dist_<strong>to</strong>_light<br />
}<br />
if ( dist_<strong>to</strong>_light < light_range )<br />
{<br />
// perform lighting calculation<br />
}