GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

How to solve if .fsh have more than one uniform?

Open Khazmovsky opened this issue 12 years ago • 1 comments

if the .fsh have more than 1 uniform,how to subclassing the GPUImageFilter to implementation custom filter~the class GPUImage have only one uniform,so the init method not work,how to solve this?

Khazmovsky avatar Apr 22 '14 11:04 Khazmovsky

Look at the various examples in the framework where additional uniforms are added (like the brightness filter, as a simple case). Follow their example when creating your own custom filter subclass.

BradLarson avatar Apr 22 '14 15:04 BradLarson