1 #include "MaterialFactory.h"
5 IMaterial::IMaterial(std::string identifier_)
8 void IMaterial::compile(
const byte buffer[], std::size_t bufferLength) {
9 Serial::loadFromBuffer(
this, buffer, bufferLength);
11 this->shader = Resource::getResource<Shader>(this->shaderPath);
14 void IMaterial::use()
const {
A chunk of data, usually a file. Is typically cached and shared.