Skip to content

Commit

Permalink
Merge pull request #362 from favreau/master
Browse files Browse the repository at this point in the history
Fixed Advanced renderer alpha in OSPRay engine
  • Loading branch information
favreau committed Mar 14, 2024
2 parents 1a177ca + 3f7d6df commit 4fcceba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/engines/ospray/ispc/render/AdvancedRenderer.ispc
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ inline vec3f AdvancedRenderer_shadeRay(const uniform AdvancedRenderer* uniform s
const float fog = 1.f - color.w * (1.f - fogAttenuation);

// Final color
sample.alpha = min(1.f, color.w);
// sample.alpha = min(1.f, color.w);
sample.alpha = color.w > 0.f ? 1.f : 0.f;
vec3f finalColor = (make_vec3f(color) * (1.f - fog) + fog * bgColor) * self->super.super.exposure;

if (self->matrixFilter)
Expand Down

0 comments on commit 4fcceba

Please sign in to comment.