previous |  up  | next
 

Vertex Shader Part2   

Author:  TheTutor

This is a continuation of the introduction to vertex shaders.  In this tutorial, we add vertex normals to our cube and scale the box along its vertex normal.  Additionally, we linear interpolate between the blue and green colors stored at the vertices of the cube to continually oscillate the cube's color.

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


purchase full version
Access EXE

 
 
 

 

 

 


 C
 C++
 Win32
 Direct3D
 OpenGL
 C#
 Java
 Free Tutorials