Author: TheTutor
Contained inside of this tutorial, is an introduction to pixel shaders with the use of effect files and HLSL. The tutorial begins with a brief historical background to shaders and some defining of shader terminology. Next, a vertex shader and pixel shader are implemented and used to draw a spinning textured cube to the screen.
Functions/Methods Used: Direct3DCreate9(), D3DXCreateEffectFromFile(), assert()
IDirect3D9:: CreateDevice(), Release()
IDirect3DDevice9:: BeginScene(), EndScene(), SetFVF(), DrawPrimitiveUP(), Clear(), Release()
ID3DXEffect:: Begin(), End(), BeginPass(), EndPass(), SetTechnique(), SetMatrix(), SetFloat(), Release()
ID3DXBuffer:: GetBufferPointer()
HLSL: mul(), tex2D()