D3DX Effects and the DirectX 9 High-Level Shading ... - Nvidia
D3DX Effects and the DirectX 9 High-Level Shading ... - Nvidia
D3DX Effects and the DirectX 9 High-Level Shading ... - Nvidia
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
FX Example – Assembly Shaders<br />
technique DiffuseBump<br />
{<br />
pass p0<br />
{<br />
…<br />
Zenable = true;<br />
ZWriteEnable = true;<br />
CullMode = None;<br />
VertexShaderConstant[4] = ;<br />
VertexShader =<br />
asm<br />
{<br />
vs_1_1<br />
…<br />
m4x4 oPos, v0, c4<br />
// pos in screen space.<br />
};<br />
} // end pass p0<br />
} // end technique SimpleTexture Old skool assembly shader