Dec 14, 2008 at 12:18am
I’ve read the Jitter tutorials I could find on writing your own shader but still find myself stumped. Would it be fairly easy to convert blur shader included with the Jitter install to a blur that would effect only the alpha channel. I understand that I need to somehow address a vec4 texture and then somehow target only the alpha channel for the effects of the blur. I eventually want to take on the “orange” book but feel I should probably learn some “C” or “Processing” first since I’ve never done any text coding before. If anyone knows of any tutorials that would help me write an alphablur shader or can offer some pointers about how to adapt the shader below I would be very grateful.
* Derek Gerstmann – firstname.lastname@example.org
* Copyright 2005 – Cycling ’74
* GLSL fragment program for a simple 5 tap blur filter.
uniform sampler2DRect image;
varying vec2 texcoord11;
blur = texture2DRect(image, texcoord11);
gl_FragColor = 0.2 * blur;
You must be logged in to reply to this topic.