From dcf6652764d199e314f6b4612f2b88271c9e9437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 17 Oct 2023 18:31:13 +0200 Subject: [PATCH] TextureTools: document DistanceField image size expectations. Forgot that in 89af6ff82e6421f13843dae4686fd51cde4374b8. --- src/Magnum/TextureTools/DistanceField.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/TextureTools/DistanceField.h b/src/Magnum/TextureTools/DistanceField.h index df825dd8d..11310b5ce 100644 --- a/src/Magnum/TextureTools/DistanceField.h +++ b/src/Magnum/TextureTools/DistanceField.h @@ -136,6 +136,11 @@ class MAGNUM_TEXTURETOOLS_EXPORT DistanceField { * still inefficient supported format is in most cases * @ref GL::TextureFormat::RGB. The @ref GL::TextureFormat::Luminance * format usually isn't renderable. + * + * Additionally, the ratio of the @p input size (or @p imageSize on + * OpenGL ES) and @p rectangle size is expected to be a multiple of 2, + * as that's what the generator shader relies on for correct pixel + * addressing. */ void operator()(GL::Texture2D& input, GL::Framebuffer& output, const Range2Di& rectangle, const Vector2i& imageSize #ifndef MAGNUM_TARGET_GLES