Browse Source

Shaders: don't just handwave away distance field parameters in docs.

They're properly documented now, link there.
pull/674/head
Vladimír Vondruš 1 year ago
parent
commit
12377c71b1
  1. 21
      src/Magnum/Shaders/DistanceFieldVectorGL.h

21
src/Magnum/Shaders/DistanceFieldVectorGL.h

@ -68,15 +68,18 @@ namespace Implementation {
@m_since_latest @m_since_latest
Renders vector graphics in a form of signed distance field. See Renders vector graphics in a form of signed distance field. See
@ref TextureTools::DistanceFieldGL for more information and @ref VectorGL for a @ref TextureTools::DistanceFieldGL for a way to generate distance field
simpler variant of this shader. Note that the final rendered outlook will textures to use with this shader and for more information about choosing the
greatly depend on radius of input distance field and value passed to parameters for conversion and rendering. The @ref VectorGL shader is then a
@ref setSmoothness(). You need to provide @ref Position and variant of this shader that doesn't use a distance field texture but rather the
@ref TextureCoordinates attributes in your triangle mesh and call at least original input directly.
@ref bindVectorTexture(). By default, the shader renders the distance field
texture with a white color in an identity transformation, use You need to provide @ref Position and @ref TextureCoordinates attributes in
@ref setTransformationProjectionMatrix(), @ref setColor() and others to your triangle mesh and call at least @ref bindVectorTexture(). By default, the
configure the shader. shader renders the distance field texture with a white color in an identity
transformation, use @ref setTransformationProjectionMatrix(), @ref setColor()
and others to configure the shader. Edge smoothness can be controlled using
@ref setSmoothness().
Alpha / transparency is supported by the shader implicitly, but to have it Alpha / transparency is supported by the shader implicitly, but to have it
working on the framebuffer, you need to enable working on the framebuffer, you need to enable

Loading…
Cancel
Save