Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
a8f2d8e6
Commit
a8f2d8e6
authored
Jan 28, 2013
by
Sylvain Thery
Browse files
resolve bug explodeVolumeSmooth
parent
b1faeed4
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Algo/Render/GL2/explodeVolumeRender.hpp
View file @
a8f2d8e6
...
...
@@ -131,7 +131,7 @@ void ExplodeVolumeRender::updateSmooth(typename PFP::MAP& map, const VertexAttri
N
.
normalize
();
normals
.
push_back
(
N
);
a
=
e
;
centerFace
+=
positions
[
d
];
centerFace
+=
positions
[
a
];
nbs
++
;
}
while
(
a
!=
d
);
...
...
@@ -243,7 +243,7 @@ void ExplodeVolumeRender::updateSmooth(typename PFP::MAP& map, const VertexAttri
N
.
normalize
();
normals
.
push_back
(
N
);
a
=
e
;
centerFace
+=
positions
[
d
];
centerFace
+=
positions
[
a
];
nbs
++
;
}
while
(
a
!=
d
);
...
...
include/Utils/Shaders/shaderExplodeSmoothVolumes.frag
View file @
a8f2d8e6
...
...
@@ -3,8 +3,8 @@
uniform
vec4
ambient
;
uniform
vec4
backColor
;
VARYING_FRAG
vec
4
normalFS
;
VARYING_FRAG
vec
4
lightFS
;
VARYING_FRAG
vec
3
normalFS
;
VARYING_FRAG
vec
3
lightFS
;
VARYING_FRAG
vec3
colorVert
;
...
...
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