Pixel-to-path mapping a Slug fragment applies to its own pixel center p: pathFromPixel * (p - pixelOrigin) + pathOffset, with pathFromPixel holding the inverse linear transform's two columns. More...
#include "donner/gpu/shader/programs/SlugFill.h"
Public Attributes | |
| float | pathFromPixel [4] = {} |
| Inverse linear transform, two columns, pixel to path. | |
| float | pixelOrigin [2] = {} |
| Integer pixel the mapping is taken relative to. | |
| float | pathOffset [2] = {} |
| Path position of the translation's fractional remainder. | |
Pixel-to-path mapping a Slug fragment applies to its own pixel center p: pathFromPixel * (p - pixelOrigin) + pathOffset, with pathFromPixel holding the inverse linear transform's two columns.
The fill, gradient and mask shaders all take it in this form.
| float donner::gpu::shader::programs::SlugPixelMapping::pathFromPixel[4] = {} |
Inverse linear transform, two columns, pixel to path.
| float donner::gpu::shader::programs::SlugPixelMapping::pathOffset[2] = {} |
Path position of the translation's fractional remainder.
| float donner::gpu::shader::programs::SlugPixelMapping::pixelOrigin[2] = {} |
Integer pixel the mapping is taken relative to.