Commit 95f97e35 authored by Matt Clarkson's avatar Matt Clarkson

Improved translucent actor counting.

parent b102894e
......@@ -875,6 +875,11 @@ int VividRenderer::renderQueue(const RenderQueue* render_queue, GLSLProgram* cur
}
if ( shader->getUniform("vl_Vivid.material.diffuse")->getUniform4F().a() < 1 ||
shader->getUniform("vl_Vivid.outline.color")->getUniform4F().a() < 1 ||
shader->getUniform("vl_Vivid.fog.target")->getUniformI() == vl::Vivid::Alpha || // note: it could be disabled
shader->getUniform("vl_Vivid.smartClip[0].target")->getUniformI() == vl::Vivid::Alpha || // note: it could be disabled
shader->getUniform("vl_Vivid.smartClip[1].target")->getUniformI() == vl::Vivid::Alpha ||
shader->getUniform("vl_Vivid.smartClip[2].target")->getUniformI() == vl::Vivid::Alpha ||
shader->getUniform("vl_Vivid.smartClip[3].target")->getUniformI() == vl::Vivid::Alpha ||
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