/*{ "DESCRIPTION": "messed up version of v002 dilate", "CREDIT": "by carter rosenberg", "ISFVSN": "2", "CATEGORIES": [ "Blur", "v002" ], "INPUTS": [ { "NAME": "inputImage", "TYPE": "image" }, { "NAME": "amount", "TYPE": "float", "MIN": 0.0, "MAX": 0.1, "DEFAULT": 0.01 } ] }*/ #if __VERSION__ <= 120 varying vec2 texcoord0; varying vec2 texcoord1; varying vec2 texcoord2; varying vec2 texcoord3; varying vec2 texcoord4; varying vec2 texcoord5; varying vec2 texcoord6; varying vec2 texcoord7; #else in vec2 texcoord0; in vec2 texcoord1; in vec2 texcoord2; in vec2 texcoord3; in vec2 texcoord4; in vec2 texcoord5; in vec2 texcoord6; in vec2 texcoord7; #endif void main() { vec4 dilate = IMG_NORM_PIXEL(inputImage, 0.5 * (texcoord3 + texcoord4)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord0)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord1)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord2)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord3)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord4)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord5)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord6)); dilate = max(dilate, IMG_NORM_PIXEL(inputImage, texcoord7)); gl_FragColor = dilate; }