Книга: DirectX 8 Programming Tutorial

Flexible Vertex Format (FVF)

Flexible Vertex Format (FVF)

A Flexible Vertex Format or FVF is a format for describing attributes of a vertex. We've already seen three attributes: x value, y value and z value. There are other attributes that we can specify for a vertex, such as, colour and shininess. Using FVFs we can configure which attributes we want specify for a vertex. When you specify a polygon in Direct3D, the polygon can be filled based on attributes of the vertices. The fill of the polygon is interpolated (blended) between vertices. In our example below, you will see that the three vertices of our polygon are all different colours: red, green and blue. These colours are blended together across the polygon.

Оглавление книги


Генерация: 1.074. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз