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.
Caveats for Conditional<br />
Instructions<br />
• Conditional instructions can easily cause visual<br />
discontinuities<br />
• Useful for shaders that sometimes need a sharp<br />
edge<br />
– Or effects where <strong>the</strong> edge is faded out anyway<br />
– Like light attenuation<br />
• A filtered texture fetch in<strong>to</strong> a sharp gradient<br />
texture can give smoo<strong>the</strong>r results