Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
d8464aea
Commit
d8464aea
authored
Nov 18, 2013
by
Christian Schulte zu Berge
Browse files
little optimization in OptimizedRaycaster shader
parent
148ab63c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/vis/glsl/optimizedraycaster.frag
View file @
d8464aea
...
...
@@ -141,13 +141,14 @@ vec4 performRaycasting(in vec3 entryPoint, in vec3 exitPoint, in vec2 texCoords)
// check whether we have a lookup volume for empty space skipping
if
(
_hasBbv
)
{
if
(
!
lookupInBbv
(
samplePosition
))
{
if
(
!
lookupInBbv
(
samplePosition
))
{
// advance the ray to the intersection point with the current brick
vec3
brickVoxel
=
floor
((
samplePosition
*
_volumeTextureParams
.
_size
)
/
_bbvBrickSize
)
*
_bbvBrickSize
;
vec3
boxLlf
=
brickVoxel
*
_volumeTextureParams
.
_sizeRCP
;
vec3
boxUrb
=
boxLlf
+
(
_volumeTextureParams
.
_sizeRCP
*
_bbvBrickSize
);
t
=
rayBoxIntersection
(
entryPoint
,
direction
,
boxLlf
,
boxUrb
,
t
);
t
=
rayBoxIntersection
(
entryPoint
,
direction
,
boxLlf
,
boxUrb
,
t
)
+
_samplingStepSize
;
continue
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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