关键代码:
- (GLImageLutFilter *)lutFilter {
if (!_lutFilter) {
//添加滤镜filter
_lutFilter = [[GLImageLutFilter alloc]init];
UIImage *imageFilter = [UIImage imageNamed:@"filter_real.png"];//;
[_lutFilter setLutImage: imageFilter];
[_lutFilter addTarget:self.preview];
}
return _lutFilter;
}
原图
[图片上传中...(fennen@2x.png-c4f8c5-1573114509885-0)]