Added 2d stroke tessellation to all shape modes

This commit is contained in:
codeanticode
2011-12-04 01:19:19 +00:00
parent 3545a5b16c
commit d70a5b1a98
3 changed files with 963 additions and 976 deletions
@@ -11,7 +11,7 @@ void main() {
vec4 pos_p = gl_Vertex;
vec4 pos_q = vec4(attribs.xyz, 1);
vec4 v_p = gl_ModelViewMatrix * pos_p;
//v_p.xyz = v_p.xyz * 0.99;
v_p.xyz = v_p.xyz * 0.99;
vec4 clip_p = gl_ProjectionMatrix * v_p;
vec4 v_q = gl_ModelViewMatrix * pos_q;
File diff suppressed because it is too large Load Diff
@@ -675,9 +675,11 @@ public class PShape3D extends PShape {
tessellator.setInGeometry(in);
tessellator.setTessGeometry(tess);
if (family == GEOMETRY) {
if (kind == POINTS) {
tessellator.tessellatePoints(strokeCap);
tessellator.tessellatePoints();
} else if (kind == LINES) {
tessellator.tessellateLines();
} else if (kind == TRIANGLES) {