Commit ec7b5c45 authored by Michele Bosi's avatar Michele Bosi

Fixed depth peeling throttling.

parent 6c064f63
......@@ -870,7 +870,7 @@ int VividRenderer::renderQueue(const RenderQueue* render_queue, GLSLProgram* cur
ArrayFloat4* ca = geom->colorArray()->as<ArrayFloat4>();
vc = ca && ca->size() ? ca->at(0) : vl::white;
}
if ( shader->getMaterial()->frontDiffuse().a() < 1 ||
if ( shader->getUniform("vl_Vivid.material.diffuse")->getUniform4F().a() < 1 ||
shader->getUniform("vl_Vivid.outline.color")->getUniform4F().a() < 1 ||
vc.a() < 1 ) {
++translucent_actor_count;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment