mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Eliminate the grid effect.
I actually quite like it: it adds a certain crunch to the image. But it's an artifact. If the user wants more noise, that should probably belong in a true postprocessing filter.
This commit is contained in:
parent
3619d96926
commit
44a826508a
@ -135,6 +135,12 @@ class SmearClip(Filter, ClsMod):
|
|||||||
tref.set_address_2d(fb.d_back, dsc, 16 * dim.astride)
|
tref.set_address_2d(fb.d_back, dsc, 16 * dim.astride)
|
||||||
launch2('full_blur', self.mod, stream, dim,
|
launch2('full_blur', self.mod, stream, dim,
|
||||||
fb.d_side, i32(3), i32(0), texrefs=[tref])
|
fb.d_side, i32(3), i32(0), texrefs=[tref])
|
||||||
|
tref.set_address_2d(fb.d_side, dsc, 16 * dim.astride)
|
||||||
|
launch2('full_blur', self.mod, stream, dim,
|
||||||
|
fb.d_back, i32(0), i32(0), texrefs=[tref])
|
||||||
|
tref.set_address_2d(fb.d_back, dsc, 16 * dim.astride)
|
||||||
|
launch2('full_blur', self.mod, stream, dim,
|
||||||
|
fb.d_side, i32(1), i32(0), texrefs=[tref])
|
||||||
launch2('smearclip', self.mod, stream, dim,
|
launch2('smearclip', self.mod, stream, dim,
|
||||||
fb.d_front, fb.d_side, f32(gam-1), lin, lingam)
|
fb.d_front, fb.d_side, f32(gam-1), lin, lingam)
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ filters = (
|
|||||||
, 'curve': scalespline(0.6, d='Power of filter radius with density')
|
, 'curve': scalespline(0.6, d='Power of filter radius with density')
|
||||||
}
|
}
|
||||||
, 'haloclip': {}
|
, 'haloclip': {}
|
||||||
, 'smearclip': {'width': scalespline(1, d='Spatial stdev of filter')}
|
, 'smearclip': {'width': scalespline(0.7, d='Spatial stdev of filter')}
|
||||||
, 'logscale': {'brightness': scalespline(4, d='Log-scale brightness')}
|
, 'logscale': {'brightness': scalespline(4, d='Log-scale brightness')}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user