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

 
 
previous | up | next 
Vertex Lighting with HLSL


 E-mail this product to a friend

Author:  TheTutor

The first step to having a professional looking 3D application is to add lighting.  With HLSL, you can apply the standard lighting model per vertex or per pixel.  This tutorial does vertex lighting through the programmable pipeline.  You'll also find three diagrams that hopefully shed some light on how vertex lighting works.

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