Commit a8f2d8e6 authored by Sylvain Thery's avatar Sylvain Thery

resolve bug explodeVolumeSmooth

parent b1faeed4
...@@ -131,7 +131,7 @@ void ExplodeVolumeRender::updateSmooth(typename PFP::MAP& map, const VertexAttri ...@@ -131,7 +131,7 @@ void ExplodeVolumeRender::updateSmooth(typename PFP::MAP& map, const VertexAttri
N.normalize(); N.normalize();
normals.push_back(N); normals.push_back(N);
a = e; a = e;
centerFace += positions[d]; centerFace += positions[a];
nbs++; nbs++;
} while (a != d); } while (a != d);
...@@ -243,7 +243,7 @@ void ExplodeVolumeRender::updateSmooth(typename PFP::MAP& map, const VertexAttri ...@@ -243,7 +243,7 @@ void ExplodeVolumeRender::updateSmooth(typename PFP::MAP& map, const VertexAttri
N.normalize(); N.normalize();
normals.push_back(N); normals.push_back(N);
a = e; a = e;
centerFace += positions[d]; centerFace += positions[a];
nbs++; nbs++;
} while (a != d); } while (a != d);
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
uniform vec4 ambient; uniform vec4 ambient;
uniform vec4 backColor; uniform vec4 backColor;
VARYING_FRAG vec4 normalFS; VARYING_FRAG vec3 normalFS;
VARYING_FRAG vec4 lightFS; VARYING_FRAG vec3 lightFS;
VARYING_FRAG vec3 colorVert; VARYING_FRAG vec3 colorVert;
......
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