Whole-pixel base and constant blend weight of a pixel shift along one axis: output pixel x blends input pixels x - shift and x - shift + 1 by weight. The split is made once, in double precision, so every pixel of a translation uses the same weight wherever the raster sits. More...
#include "donner/gpu/shader/programs/Offset.h"
Public Attributes | |
| int32_t | shift |
| Input pixel x - shift is the first of the two blended pixels. | |
| float | weight |
| Weight of input pixel x - shift + 1; zero for a whole-pixel shift. | |
Whole-pixel base and constant blend weight of a pixel shift along one axis: output pixel x blends input pixels x - shift and x - shift + 1 by weight. The split is made once, in double precision, so every pixel of a translation uses the same weight wherever the raster sits.
| int32_t donner::gpu::shader::programs::PixelShiftSplit::shift |
Input pixel x - shift is the first of the two blended pixels.
| float donner::gpu::shader::programs::PixelShiftSplit::weight |
Weight of input pixel x - shift + 1; zero for a whole-pixel shift.