Struct VertexPosNormalColor

Vertex attribute data comprising a 3D position, normal vector, and opaque diffuse color.

struct VertexPosNormalColor ;

Fields

NameTypeDescription
color gfm.math.vector.Vector!(float,3)Opaque diffuse color.
normal gfm.math.vector.Vector!(float,3)Normal vector.
position gfm.math.vector.Vector!(float,3)3D position.

Methods

NameDescription
attributeDescriptions () Describes the format of each vertex attribute so that they can be applied to the vertex shader.
bindingDescription () Describes how vertex attributes should be bound to the vertex shader.