Cube geometry primitive attributes. More...
#include <GeometryPrimitives.h>
Public Attributes | |
float | Size = 1.f |
The size of the cube. | |
![]() | |
GEOMETRY_PRIMITIVE_TYPE | Type = GEOMETRY_PRIMITIVE_TYPE_UNDEFINED |
The geometry primitive type, see Diligent::GEOMETRY_PRIMITIVE_TYPE. | |
GEOMETRY_PRIMITIVE_VERTEX_FLAGS | VertexFlags = GEOMETRY_PRIMITIVE_VERTEX_FLAG_ALL |
Uint32 | NumSubdivisions = 0 |
The number of subdivisions. | |
Cube geometry primitive attributes.
float Diligent::CubeGeometryPrimitiveAttributes::Size = 1.f |
The size of the cube.
The cube is centered at (0, 0, 0) and has the size of Size x Size x Size. If the cube size is 1, the coordinates of the cube vertices are in the range [-0.5, 0.5].