group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
AssetDefinition Struct Reference

Header-authored defaults for assets registered with AssetRegistry. More...

#include <AssetCatalog.hpp>

Public Attributes

const char * name = ""
const char * filename = ""
AssetRole role = AssetRole::Entity
glm::vec3 loadTranslation {0.0f}
 World translation used when loading static scene assets.
float loadScale = 1.0f
 Scale used when loading/uploading the model.
bool flipUVs = false
 True for assets whose source UV orientation needs flipping.
bool decomposeCollision = false
 True to run V-HACD on non-convex collision sub-meshes.
glm::vec3 renderScale {1.0f}
 Default Renderable scale.
glm::vec3 renderTranslation {0.0f}
 Default Renderable local translation.
glm::vec3 renderRotationDegrees {0.0f}
 Default Renderable local rotation in degrees.

Detailed Description

Header-authored defaults for assets registered with AssetRegistry.

Member Data Documentation

◆ decomposeCollision

bool AssetDefinition::decomposeCollision = false

True to run V-HACD on non-convex collision sub-meshes.

◆ filename

const char* AssetDefinition::filename = ""

◆ flipUVs

bool AssetDefinition::flipUVs = false

True for assets whose source UV orientation needs flipping.

◆ loadScale

float AssetDefinition::loadScale = 1.0f

Scale used when loading/uploading the model.

◆ loadTranslation

glm::vec3 AssetDefinition::loadTranslation {0.0f}

World translation used when loading static scene assets.

◆ name

const char* AssetDefinition::name = ""

◆ renderRotationDegrees

glm::vec3 AssetDefinition::renderRotationDegrees {0.0f}

Default Renderable local rotation in degrees.

◆ renderScale

glm::vec3 AssetDefinition::renderScale {1.0f}

Default Renderable scale.

◆ renderTranslation

glm::vec3 AssetDefinition::renderTranslation {0.0f}

Default Renderable local translation.

◆ role

AssetRole AssetDefinition::role = AssetRole::Entity

The documentation for this struct was generated from the following file: