Hi
I'm using OpenGL for some particle animation - but the quads are showing a thin grey line around the edges. The texture looks fine when the quad is the same size as the texture, but because I need multiple quad sizes ,the border lines show when smaller or larger.
Many thanks for any help,
Glenn.
- import processing.opengl.*;
- PImage testpic;
- void setup()
- {
- size(500, 500, OPENGL);
- testpic=loadImage("testpic.jpg");
- noStroke();
- }
- void draw()
- {
- background(255);
- scale(3.5);
- beginShape();
- texture(testpic);
- vertex(0, 0, 0, 0, 0);
- vertex(100, 0, 0, 300, 0);
- vertex(100, 100, 0, 300, 300);
- vertex(0, 100, 0, 0, 300);
- endShape();
- }
1