3D Fundamentals Tutorial 12

From Chilipedia
Jump to: navigation, search

The vertex shader is the one of the two original shaders introduced in Direct3D 8, and it is the only shader besides the pixel shader that must be provided before triangles can be rendered. It's kind of a big deal.

Video

The tutorial video is on YouTube here.

[Expand]
  • What is a Vertex Shader (vs) and its position in the pipeline 0:20
  • Code implementation walk-through 1:14
  • Effect::VertexShader 3:33
  • DefaultVertexShader.h 4:06
  • Scene definition 5:02
  • Demo: creating a wave effect 5:24
  • Plane.h defines Tessellation of a plane object 6:28
  • WaveVertexTextureEffect.h implements the sinusoid wave effect 7:21
  • VertexWaveScene.h 9:48
  • Example where the vertex output type is different from the vertex input type 10:48

Downloads

The GitHub repository for the tutorial code is here.

See also