Class MaterialInfo

Class Documentation

class MaterialInfo

Describes where a material can be downloaded from, and what is needed to parse it.

Getting a material is a two step process. CSP resolves a MaterialInfo, the caller fetches its Uri, and passes the data back to AssetSystem::ParseMaterial along with the info it came from. Only the Uri is of use to the caller, the rest is passed back unchanged.

Public Functions

bool operator==(const MaterialInfo &Other) const
bool operator!=(const MaterialInfo &Other) const

Public Members

csp::common::String Uri

The url to download the material data from.

EShaderType ShaderType = EShaderType::Standard

The type of shader model the material is associated with.

csp::common::String MaterialCollectionId

The asset collection the material belongs to.

csp::common::String MaterialId

The asset the material data is stored in.