mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Added 2d stroke tessellation to all shape modes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user