Quantcast
Channel: GLSL / Shaders - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 212

apply shader on PImage directly

$
0
0

Is something like this possible?

testImg = loadImage("someImage.jpg");
testImg.filter(shader);

The reason I ask is cause getting the color of an image directly is insane fast

int c = img.get(mouseX, mouseY);

Like 500 frames a second. But if I draw to the main canvas first (g) then it's really slow. Like:

int c =get(mouseX, mouseY);

Viewing all articles
Browse latest Browse all 212

Trending Articles