Commit 4a53fe139ef557994b668304062e1befa92e29fb
1 parent
b911f5a1
Exists in
master
and in
67 other branches
ENH: Improved support gpu raycasting
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
invesalius/data/volume.py
@@ -420,7 +420,8 @@ class Volume(): | @@ -420,7 +420,8 @@ class Volume(): | ||
420 | self.volume_properties.SetSpecularPower(shading['specularPower']) | 420 | self.volume_properties.SetSpecularPower(shading['specularPower']) |
421 | 421 | ||
422 | def SetTypeRaycasting(self): | 422 | def SetTypeRaycasting(self): |
423 | - if self.volume_mapper.IsA("vtkFixedPointVolumeRayCastMapper"): | 423 | + if self.volume_mapper.IsA("vtkFixedPointVolumeRayCastMapper") or self.volume_mapper.IsA("vtkGPUVolumeRayCastMapper"): |
424 | + | ||
424 | if self.config.get('MIP', False): | 425 | if self.config.get('MIP', False): |
425 | self.volume_mapper.SetBlendModeToMaximumIntensity() | 426 | self.volume_mapper.SetBlendModeToMaximumIntensity() |
426 | else: | 427 | else: |