Introduction to the DirectX 9 Shader Models - Nvidia

Introduction to the DirectX 9 Shader Models - Nvidia Introduction to the DirectX 9 Shader Models - Nvidia

30.04.2014 Views

Dynamic Flow Control Sim • Very useful to improve batching for matrix palette skinning • Do a dynamic loop over the # of non-zero bones in the vertex – Sort per-vertex indices & weights by priority – If the a weight is zero, break out of skinning loop • Can do automatic shader LOD – Distance to light or viewer large enough – Or when fully fogged, etc.

End Sim VS Sim

Dynamic Flow Control<br />

Sim<br />

• Very useful <strong>to</strong> improve batching for matrix palette<br />

skinning<br />

• Do a dynamic loop over <strong>the</strong> # of non-zero bones in<br />

<strong>the</strong> vertex<br />

– Sort per-vertex indices & weights by priority<br />

– If <strong>the</strong> a weight is zero, break out of skinning loop<br />

• Can do au<strong>to</strong>matic shader LOD<br />

– Distance <strong>to</strong> light or viewer large enough<br />

– Or when fully fogged, etc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!