Skip to content

Fast Vignette Shader

Adam Gorski edited this page Jul 23, 2021 · 2 revisions

Fast Vignette

To use the fast vignette shader, you must first have a initialized float buffer that contains all of your multiplication values for each pixel.
Obviously, you will also need a color buffer to apply this vignette filter too.

GLTexture vignetteBuffer;
GLTexture colorBuffer;

Next up you will need the xfcore.Performance namespace:

using xfcore.Performance;

Finally, you can use the GLFast class:

GLFast.VignetteMultiply(colorBuffer, vignetteBuffer);