]> de.git.xonotic.org Git - xonotic/mediasource.git/blobdiff - gfx/crosshairs/luma/gfx/common.filters
Render Luma crosshairs with Inkscape to avoid rsvg inconsistencies
[xonotic/mediasource.git] / gfx / crosshairs / luma / gfx / common.filters
index 45de8bac96ecb255ded08fffcce94c1adc834fa8..262a99a227bc02f131521df1b644444784646363 100644 (file)
@@ -1,20 +1,19 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64">
        <defs>
-               <filter id="shadow" x="-0.5" y="-0.5" width="2" height="2">
-                       <feMorphology operator="dilate" radius="0.7" in="SourceAlpha"/>
-                       <feColorMatrix values="1 0 0 0 0.25 0 1 0 0 0.25 0 0 1 0 0.25 0 0 0 0.7 0"/>
+               <filter id="shadow" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
+                       <feMorphology operator="dilate" radius="1" in="SourceGraphic"/>
+                       <feColorMatrix values="0.25 0 0 0 0 0 0.25 0 0 0 0 0 0.25 0 0 0 0 0 0.5 0"/>
                        <feGaussianBlur stdDeviation="1" result="shadow"/>
                        <feMerge>
                                <feMergeNode in="shadow"/>
                                <feMergeNode in="SourceGraphic"/>
                        </feMerge>
                </filter>
-               <filter id="shadowdot" x="-0.5" y="-0.5" width="2" height="2">
-                       <feMorphology operator="dilate" radius="1.4" in="SourceAlpha"/>
-                       <feColorMatrix values="1 0 0 0 0.25 0 1 0 0 0.25 0 0 1 0 0.25 0 0 0 0.7 0"/>
-                       <feGaussianBlur stdDeviation="2"/>
-                       <feOffset dx="0.25" dy="0.25" result="shadow"/>
+               <filter id="shadowdot" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
+                       <feMorphology operator="dilate" radius="1" in="SourceGraphic"/>
+                       <feColorMatrix values="0.25 0 0 0 0 0 0.25 0 0 0 0 0 0.25 0 0 0 0 0 0.875 0"/>
+                       <feGaussianBlur stdDeviation="2" result="shadow"/>
                        <feMerge>
                                <feMergeNode in="shadow"/>
                                <feMergeNode in="SourceGraphic"/>