-
Notifications
You must be signed in to change notification settings - Fork 0
Fast Vignette Shader
Adam Gorski edited this page Jul 23, 2021
·
2 revisions
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);