Login    You have 0 item(s) in your Shopping Cart  

 
 
previous | up | next 
Per-Pixel Lighting


 E-mail this product to a friend

Author:  TheTutor

While vertex lighting may be sufficient for your lighting needs, there is nothing quite like the beautiful lighting experience that per-pixel lighting offers.  Per-pixel lighting is an extension of vertex lighting.  In stead of calculating the lighting value at each vertex, it is instead done at each pixel.  The tutorial showcases a comparison of vertex vs per-pixel lighting and gives a straight forward approach to implementing per-pixel lighting using HLSL and a .fx file. 

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()

ID3DXMesh:: CloneMeshFVF(), LockVertexBuffer(), UnlockVertexBuffer(), GetVertexBuffer(), GetIndexBuffer(), GetNumVertices(), GetNumFaces(), Release()

HLSL:  mul(), normalize(), pow(), max(), dot()


 
 
 


 GameTutorials Software
 C Tutorials
 C++ Tutorials
 C# Tutorials
 Java Tutorials
 Win32 Tutorials
 Direct3D Tutorials
 OpenGL Tutorials
 Recent Tutorials
 Free Tutorials



Get All 350+ Tutorials Now!


                                                              Main  |  FAQ  |  Terms of Use  |  Links Contacts Forums