summaryrefslogtreecommitdiffstats
path: root/src/extras/extras.qrc
diff options
context:
space:
mode:
authorWieland Hagen <wieland.hagen@kdab.com>2016-12-28 13:25:38 +0700
committerSean Harmer <sean.harmer@kdab.com>2017-01-30 18:56:16 +0000
commit18ad771187f3d9a7d14d1a98d71ce64ed8ff15d4 (patch)
treec5e82336db09f911066912f011771ff1ca35fb77 /src/extras/extras.qrc
parent6c94c0395d060b4f4e07da1b86348f3e0e7a9b65 (diff)
QDistanceFieldMaterial: distance field text rendering shaders
One QDistanceFieldMaterial will have to be created for each distinct texture atlas that is used to store the glyphs of fonts. The smaller the glyphs are in pixel space (i.e. the more texels per pixel), the smoother we render the threshold between inside-glyph and outside-glyph. We measure the size of the glyph by taking the per-fragment delta of the texture coordinates. This is to reduce aiasing as much as possible without resorting to screen-space AA techniques. The same method is used in the QtQuick renderer, but here in this case we allow a much smoother threshold for small glyphs. Change-Id: I6632e7e1da31126c84f5bd2b4a4498377bdad79e Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/extras/extras.qrc')
-rw-r--r--src/extras/extras.qrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/extras/extras.qrc b/src/extras/extras.qrc
index 1319b10a5..04437d599 100644
--- a/src/extras/extras.qrc
+++ b/src/extras/extras.qrc
@@ -41,5 +41,9 @@
<file>shaders/es2/unlittexture.vert</file>
<file>shaders/gl3/metalrough.vert</file>
<file>shaders/gl3/metalrough.frag</file>
+ <file>shaders/gl3/distancefieldtext.vert</file>
+ <file>shaders/gl3/distancefieldtext.frag</file>
+ <file>shaders/es2/distancefieldtext.frag</file>
+ <file>shaders/es2/distancefieldtext.vert</file>
</qresource>
</RCC>