Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
abcfa1c6
Commit
abcfa1c6
authored
Oct 29, 2016
by
David E. DeMarle
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
30dd43d7
' into release
parents
5241fea8
30dd43d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Rendering/OSPRay/vtkOSPRayRendererNode.cxx
Rendering/OSPRay/vtkOSPRayRendererNode.cxx
+2
-1
No files found.
Rendering/OSPRay/vtkOSPRayRendererNode.cxx
View file @
abcfa1c6
...
...
@@ -24,6 +24,7 @@
#include "vtkInformation.h"
#include "vtkInformationIntegerKey.h"
#include "vtkInformationStringKey.h"
#include "vtkMath.h"
#include "vtkObjectFactory.h"
#include "vtkOSPRayActorNode.h"
#include "vtkOSPRayCameraNode.h"
...
...
@@ -121,7 +122,7 @@ namespace ospray {
{
const
double
z_n
=
2.0
*
glDepthBuffer
[
i
]
-
1.0
;
ospDepthBuffer
[
i
]
=
2.0
*
zNear
*
zFar
/
(
zFar
+
zNear
-
z_n
*
(
zFar
-
zNear
));
if
(
isn
an
(
ospDepthBuffer
[
i
]))
if
(
vtkMath
::
IsN
an
(
ospDepthBuffer
[
i
]))
{
ospDepthBuffer
[
i
]
=
FLT_MAX
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment