mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:17:01 +02:00
fix alpha material bug
This commit is contained in:
parent
a3c85bd438
commit
a7e6332c0e
1 changed files with 2 additions and 0 deletions
|
@ -469,11 +469,13 @@ void EntityRenderer::onRemoveFromScene(const EntityItemPointer& entity) {
|
||||||
void EntityRenderer::addMaterial(graphics::MaterialLayer material, const std::string& parentMaterialName) {
|
void EntityRenderer::addMaterial(graphics::MaterialLayer material, const std::string& parentMaterialName) {
|
||||||
std::lock_guard<std::mutex> lock(_materialsLock);
|
std::lock_guard<std::mutex> lock(_materialsLock);
|
||||||
_materials[parentMaterialName].push(material);
|
_materials[parentMaterialName].push(material);
|
||||||
|
emit requestRenderUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntityRenderer::removeMaterial(graphics::MaterialPointer material, const std::string& parentMaterialName) {
|
void EntityRenderer::removeMaterial(graphics::MaterialPointer material, const std::string& parentMaterialName) {
|
||||||
std::lock_guard<std::mutex> lock(_materialsLock);
|
std::lock_guard<std::mutex> lock(_materialsLock);
|
||||||
_materials[parentMaterialName].remove(material);
|
_materials[parentMaterialName].remove(material);
|
||||||
|
emit requestRenderUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec4 EntityRenderer::calculatePulseColor(const glm::vec4& color, const PulsePropertyGroup& pulseProperties, quint64 start) {
|
glm::vec4 EntityRenderer::calculatePulseColor(const glm::vec4& color, const PulsePropertyGroup& pulseProperties, quint64 start) {
|
||||||
|
|
Loading…
Reference in a new issue