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

 
 
previous | up | next 
Vertex Shader Part2


 E-mail this product to a friend

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


 
 
 


 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