Commit 5556475e authored by Ben Boeckel's avatar Ben Boeckel
Browse files

ospray: backport fixes from OSPRay 2.7.0

See paraview#20878.
parent be77817e
......@@ -28,3 +28,10 @@ superbuild_add_project(ospray
superbuild_add_extra_cmake_args(
-DOSPRAY_INSTALL_DIR:PATH=<INSTALL_DIR>)
# Backported from OSPRay 2.7.0 as per
# https://gitlab.kitware.com/paraview/paraview/-/issues/20878#note_998588
#
# https://github.com/ospray/ospray/commit/1b1960894ab77eade4d3f7647a08d8aa8b4acc1f
superbuild_apply_patch(ospray blocky-artifacts
"Fix blocky artifacts")
From 1b1960894ab77eade4d3f7647a08d8aa8b4acc1f Mon Sep 17 00:00:00 2001
From: David Bauer <david.bauer@intel.com>
Date: Wed, 7 Jul 2021 16:44:58 -0700
Subject: [PATCH] Fixes blocky artifacts in aux layers
---
ospray/render/Renderer.ispc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ospray/render/Renderer.ispc b/ospray/render/Renderer.ispc
index 2e80430e6..d83e40490 100644
--- a/ospray/render/Renderer.ispc
+++ b/ospray/render/Renderer.ispc
@@ -1,4 +1,4 @@
-// Copyright 2009-2020 Intel Corporation
+// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "Renderer.ih"
@@ -111,6 +111,11 @@ unmasked void Renderer_default_renderTile(Renderer *uniform self,
camera->initRay(camera, screenSample.ray, cameraSample);
screenSample.ray.t = min(screenSample.ray.t, tMax);
+ screenSample.z = inf;
+ screenSample.albedo =
+ make_vec3f(Renderer_getBackground(self, screenSample.pos));
+ screenSample.normal = make_vec3f(0.f);
+
self->renderSample(self, fb, world, perFrameData, screenSample);
col = col + screenSample.rgb;
alpha += screenSample.alpha;
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