Skip to content
Snippets Groups Projects
Commit 7928e24c authored by giagitom's avatar giagitom
Browse files

Avoid rendering of fully transparent renderables

parent 5dbca41d
No related branches found
No related tags found
No related merge requests found
...@@ -655,7 +655,7 @@ namespace Renderer { ...@@ -655,7 +655,7 @@ namespace Renderer {
// TODO: simplify, handle in renderable.state??? // TODO: simplify, handle in renderable.state???
// uAlpha is updated in "render" so we need to recompute it here // uAlpha is updated in "render" so we need to recompute it here
const alpha = clamp(r.values.alpha.ref.value * r.state.alphaFactor, 0, 1); const alpha = clamp(r.values.alpha.ref.value * r.state.alphaFactor, 0, 1);
if (alpha < 1 || r.values.transparencyAverage.ref.value > 0 || r.values.dPointStyle?.ref.value === 'fuzzy' || !!r.values.uBackgroundColor || r.values.dXrayShaded?.ref.value) { if ((alpha < 1 && alpha !== 0) || r.values.transparencyAverage.ref.value > 0 || r.values.dPointStyle?.ref.value === 'fuzzy' || !!r.values.uBackgroundColor || r.values.dXrayShaded?.ref.value) {
renderObject(r, 'colorDpoit', Flag.None); renderObject(r, 'colorDpoit', Flag.None);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment