Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Shader</strong> Texture LOD<br />
• If you do a texture fetch in a pixel shader, LOD<br />
is calculated au<strong>to</strong>matically<br />
– Based on a 2x2 pixel quad<br />
• So, you only need <strong>the</strong> gradient instructions if<br />
you want a non-default LOD<br />
• Or if you want <strong>to</strong> band-limit your shading<br />
function <strong>to</strong> avoid aliasing<br />
– Switch shading models or drop high-frequency terms