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:
Steven Robertson 2012-07-05 00:23:26 -07:00
parent 3619d96926
commit 44a826508a
2 changed files with 7 additions and 1 deletions

View File

@ -135,6 +135,12 @@ class SmearClip(Filter, ClsMod):
tref.set_address_2d(fb.d_back, dsc, 16 * dim.astride)
launch2('full_blur', self.mod, stream, dim,
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,
fb.d_front, fb.d_side, f32(gam-1), lin, lingam)

View File

@ -52,7 +52,7 @@ filters = (
, 'curve': scalespline(0.6, d='Power of filter radius with density')
}
, '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')}
})