diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-07-03 16:39:16 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-07-03 16:39:32 +0300 |
commit | 69e512243c781129a7eca853a7a0c2c2d58dd709 (patch) | |
tree | 998e44763e0efc23b2fdcb01ce1d8d3a1e223b5e /source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl | |
parent | 14b0510d218e9f29c1f404c10abab82d42c656cd (diff) |
Cleanup: Remove unused variable
Diffstat (limited to 'source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl')
-rw-r--r-- | source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl b/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl index e0ec6e50dc2..f19c203a70d 100644 --- a/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl +++ b/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl @@ -96,11 +96,11 @@ void doLoopStrip(int v, vec3 offset) void main() { /* Edge */ - ivec3 eflag; vec3 ecrease, ebweight; + ivec3 eflag; for (int v = 0; v < 3; ++v) { flag[v] = eflag[v] = vData[v].y | (vData[v].x << 8); - edgesCrease[v] = ecrease[v] = vData[v].z / 255.0; - edgesBweight[v] = ebweight[v] = vData[v].w / 255.0; + edgesCrease[v] = vData[v].z / 255.0; + edgesBweight[v] = vData[v].w / 255.0; } /* Face */ @@ -112,10 +112,9 @@ void main() faceColor = colorFace; /* Vertex */ - vec2 pos[3]; - ssPos[0] = pos[0] = proj(pPos[0]); - ssPos[1] = pos[1] = proj(pPos[1]); - ssPos[2] = pos[2] = proj(pPos[2]); + ssPos[0] = proj(pPos[0]); + ssPos[1] = proj(pPos[1]); + ssPos[2] = proj(pPos[2]); doVertex(0); doVertex(1); |