diff options
Diffstat (limited to 'src/Runtime/ogl-runtime/res/effectlib/distancefieldtext_dropshadow_core.frag')
m--------- | src/Runtime/ogl-runtime | 0 | ||||
-rw-r--r-- | src/Runtime/ogl-runtime/res/effectlib/distancefieldtext_dropshadow_core.frag | 28 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/Runtime/ogl-runtime b/src/Runtime/ogl-runtime new file mode 160000 +Subproject 2025912174c4cf99270b7439ec3b021e1d089ae diff --git a/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext_dropshadow_core.frag b/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext_dropshadow_core.frag deleted file mode 100644 index e13182ef..00000000 --- a/src/Runtime/ogl-runtime/res/effectlib/distancefieldtext_dropshadow_core.frag +++ /dev/null @@ -1,28 +0,0 @@ -in vec2 sampleCoord; -in vec2 shadowSampleCoord; -in vec4 normalizedTextureBounds; - -uniform sampler2D _qt_texture; -uniform vec4 color; -uniform vec4 shadowColor; - -void main() -{ - float shadowDistance = texture(_qt_texture, - clamp(shadowSampleCoord, - normalizedTextureBounds.xy, - normalizedTextureBounds.zw)).r; - float shadowDistanceD = fwidth(shadowDistance); - float shadowAlpha = smoothstep(0.5 - shadowDistanceD, 0.5, shadowDistance); - vec4 shadowPixel = color * shadowColor * shadowAlpha; - - float textDistance = texture(_qt_texture, - clamp(sampleCoord, - normalizedTextureBounds.xy, - normalizedTextureBounds.zw)).r; - float textDistanceD = fwidth(textDistance); - float textAlpha = smoothstep(0.5 - textDistanceD, 0.5, textDistance); - vec4 textPixel = color * textAlpha; - - fragOutput = mix(shadowPixel, textPixel, textPixel.a); -} |