Shading pre-multiplied alpha for simple shapes too

This commit is contained in:
brunoherbelin
2021-02-19 16:53:38 +01:00
parent f51bc1f1f4
commit 4718bf166f
2 changed files with 3 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ MixingView::MixingView() : View(MIXING), limbo_scale_(1.3f)
// Mixing scene background
Mesh *tmp = new Mesh("mesh/disk.ply");
tmp->scale_ = glm::vec3(limbo_scale_, limbo_scale_, 1.f);
tmp->shader()->color = glm::vec4( COLOR_LIMBO_CIRCLE, 0.7f );
tmp->shader()->color = glm::vec4( COLOR_LIMBO_CIRCLE, 0.6f );
scene.bg()->attach(tmp);
mixingCircle_ = new Mesh("mesh/disk.ply");