29 lines
796 B
C++
29 lines
796 B
C++
// Copyright (c) 2023 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#include "display/shader/shaders/SimpleBillboardedShader.hpp"
|
|
#include "SimpleBillboardedMaterial.hpp"
|
|
#include "game/DawnGame.hpp"
|
|
|
|
using namespace Dawn;
|
|
|
|
SimpleBillboardedMaterial::SimpleBillboardedMaterial(SceneItem *i) :
|
|
Material(i)
|
|
{
|
|
}
|
|
|
|
void SimpleBillboardedMaterial::onStart() {
|
|
this->shaderLock = this->getGame()->renderManager.getShaderManager()->lockShader<SimpleBillboardedShader>();
|
|
}
|
|
|
|
void SimpleBillboardedMaterial::onDispose() {
|
|
this->getGame()->renderManager.getShaderManager()->releaseShader<SimpleBillboardedShader>(this->shaderLock);
|
|
}
|
|
|
|
std::vector<struct ShaderPassItem> SimpleBillboardedMaterial::getRenderPasses() {
|
|
return {
|
|
|
|
};
|
|
} |