3D Fundamentals Tutorial 12
From Chilipedia
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
-
Pipeline.h
1:14
-
- Demo: creating a wave effect 5:24
- Example where Vertex Output type is different from Vertex Input Type 10:48
- Example effect: the color of the vertex is determined by its position
- The input vertex type only holds position as data member, we add color in the output data type
VSOut
- You can procedurally add information to your vertices in the vs
Downloads
The GitHub repository for the tutorial code is here.