Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientCubeMeshCreateInfo Struct Reference

Cube mesh creation attributes. More...

#include <RadientMeshPrimitives.h>

Public Attributes

const Char * Name = nullptr
 Mesh name.
Float32 Size = 1.f
 Cube size. The cube is centered at the origin.
Uint32 Subdivisions = 1
IRadientMaterialAsset * pMaterial = nullptr
 Default material assigned to the cube primitive.
const RadientColorRGBA8 * pFaceColors = nullptr

Detailed Description

Cube mesh creation attributes.

Member Data Documentation

◆ pFaceColors

const RadientColorRGBA8* Diligent::RadientCubeMeshCreateInfo::pFaceColors = nullptr

Optional six face colors in +X, -X, +Y, -Y, +Z, -Z order. When null, the cube mesh does not include vertex colors.

◆ Subdivisions

Uint32 Diligent::RadientCubeMeshCreateInfo::Subdivisions = 1

Number of subdivisions per face. Zero uses one subdivision. Values above RADIENT_MESH_PRIMITIVE_MAX_SUBDIVISIONS return RADIENT_STATUS_INVALID_ARGUMENT before geometry is generated.