Struct Material

Nested Relationships

Nested Types

Struct Documentation

struct Material

Reference path for shader and associated data.

Public Types

using ValueContainer = std::variant<int, unsigned int, float, Vec2<int>, Vec3<int>, Vec4<int>, Vec2<unsigned int>, Vec3<unsigned int>, Vec4<unsigned int>, Vec2<float>, Vec3<float>, Vec4<float>, Matrix<float, 2, 2>, Matrix<float, 2, 3>, Matrix<float, 2, 4>, Matrix<float, 3, 2>, Matrix<float, 3, 3>, Matrix<float, 3, 4>, Matrix<float, 4, 2>, Matrix<float, 4, 3>, Matrix<float, 4, 4>, TextureRef>

Shorthand for container of possible data types.

Public Members

std::string shader

Path to reference shader by.

std::map<std::string, ValueContainer> keys

Data associated with shader.

struct TextureRef

Simple struct to represent a texture asset path and indicate if it’s a cubemap.

Public Members

std::string path

Asset path.

bool isCubemap

Is this a cubemap (true) or a 2D texture (false)?