30.04.2014 Views

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

SHOW MORE
SHOW LESS

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

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

Saved successfully!

Ooh no, something went wrong!