Download and use the HLSL shader?

I searched everywhere, and all I can find are shader writing tutorials. None of them showed me how to incorporate them into my scene.

So essentially:

Given the hlsl shader, if I had the drawTexturedQuad () function and I wanted the shader to be applied to the result, how exactly could I do this?

thank

+3
source share
2 answers

ID3DXEffect provides Begin()and methods BeginPass(). Just call drawQuad()during this time. Any basic shader tutorial should show this pattern.

One more note - if in doubt, ask MSDN .

+3
source

, , GPU . D3DX FX , , , .

- , , . : , , , , ; . : , , .

, .

Vertex , . , . , , .

" " : . , 'foo', 'myNormalMap', 3. ( API- ), , , "myNormalMap" 3 , , , API, , . , ++.

( D3D9) , , , Unreal. , , , ++ , . API- , , . D3D10 , cbuffers , D3D9, , API cbuffer ( cbuffers).

, , :

, . ( , ..), , , . , - .

+1

All Articles