template<UnsignedInt dimensions>
Generic struct
Generic shader definition.
Contents
- Reference
Definitions common for majority of shaders in Shaders namespace, allowing mesh configured for the generic shader to be used with any of them. See Generic vertex attributes for more information.
Public types
Typedef documentation
template<UnsignedInt dimensions>
typedef GL::Attribute<0, T> Magnum:: Shaders:: Generic<dimensions>:: Position
Vertex position.
template<UnsignedInt dimensions>
typedef GL::Attribute<1, Vector2> Magnum:: Shaders:: Generic<dimensions>:: TextureCoordinates
2D texture coordinates
template<UnsignedInt dimensions>
typedef GL::Attribute<2, Vector3> Magnum:: Shaders:: Generic<dimensions>:: Normal
Vertex normal.
Vector3, defined only in 3D.