]> git.rm.cloudns.org Git - xonotic/mediasource.git/commitdiff
Fix Luma svg filters
authorSeverin Meyer <hello@sev.dev>
Wed, 3 Nov 2021 19:16:51 +0000 (20:16 +0100)
committerSeverin Meyer <hello@sev.dev>
Wed, 3 Nov 2021 19:16:51 +0000 (20:16 +0100)
gfx/luma/gfx/common.filters
gfx/luma/gfx/hud/default/common.filters
gfx/luma/gfx/hud/luma/common.filters
gfx/luma/gfx/hud/luma/vehicle_shield.svg
gfx/luma/gfx/scoreboard/common.filters
gfx/luma/gfx/vehicles/common.filters
gfx/luma/models/items/common.filters
gfx/luma/models/misc/common.filters
gfx/luma/models/relics/common.filters
gfx/luma/models/weapons/common.filters

index 8e2bb72090a68d7fc2905389ee0f6e21ba8e8fa5..55921754784a82ccee23f644db6b1ba9154d9ca1 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="8"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0" result="glow"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="8"/>
index bdb41acc67d760b60ebd75d67a851cb7d2fcef1f..8b067d97b5594cff413816dfa2aa054bccfae45b 100755 (executable)
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="blur" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="blur" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="0.6"/>
                </filter>
-               <filter id="buff" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="buff" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                                <!-- ./tools/hsv-matrix.pl -4 1 1 -->
                        <feColorMatrix values="1.01 0.05 -0.06 0 0 -0.01 0.99 0.02 0 0 0.06 -0.05 0.99 0 0 0 0 0 1 0" result="fill"/>
                        <feGaussianBlur in="SourceAlpha" stdDeviation="3.5"/>
index 5771817785960cca758c960c648194e064d9bc60..6612c40e665579aec4f0dd17046264aea61cfd6b 100755 (executable)
@@ -1,16 +1,16 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="blurred">
+               <filter id="blurred" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="0.4"/>
                </filter>
-               <filter id="darkened">
+               <filter id="darkened" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="2"/>
                                <!-- ./tools/hsv-matrix.pl -9 3.2 0.36 -->
                        <feColorMatrix values="1.01 -0.43 -0.22 0 0 -0.19 0.56 -0.01 0 0 -0.02 -0.69 1.07 0 0 0 0 0 1 0"/>
                        <feComposite in2="SourceAlpha" operator="in"/>
                </filter>
-               <filter id="glowing" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="glowing" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="6"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.4 0" result="glow"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="6"/>
@@ -23,7 +23,7 @@
                        </feMerge>
                        <feGaussianBlur stdDeviation="0.4"/>
                </filter>
-               <filter id="outlined">
+               <filter id="outlined" color-interpolation-filters="sRGB">
                        <feMorphology in="SourceAlpha" operator="dilate" radius="1"/>
                        <feGaussianBlur stdDeviation="3"/>
                        <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0"/>
@@ -34,7 +34,7 @@
                        </feMerge>
                        <feGaussianBlur stdDeviation="0.4"/>
                </filter>
-               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="8"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0" result="glow"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="8"/>
@@ -57,7 +57,7 @@
                        <feComposite in2="highlight" operator="arithmetic" k1="0.4" k2="1" k3="0.2"/>
                        <feGaussianBlur stdDeviation="0.4"/>
                </filter>
-               <filter id="vehicle" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="vehicle" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="8"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.7 0" result="glow"/>
                        <feMerge>
@@ -65,7 +65,7 @@
                                <feMergeNode in="SourceGraphic"/>
                        </feMerge>
                </filter>
-               <filter id="vehicleWeapon" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="vehicleWeapon" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="3"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0" result="glow"/>
                        <feMerge>
index a8e9b7c19a857aca2cf2c074f5e7781d2ebae71e..4336f466086354bfd73c8d25afc45704bc092cac 100644 (file)
@@ -4,7 +4,7 @@
                <clipPath id="clip">
                        <path d="M 74,92 51.5,77 74,38 182,38 204.5,77 182,92 Z"/>
                </clipPath>
-               <filter id="shield" x="-1" y="-1" width="3" height="3">
+               <filter id="shield" x="-1" y="-1" width="3" height="3" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="12"/>
                </filter>
        </defs>
index bcb9c276337a3b86c0e0c32b7d487dfcd1060445..3ed3f5588297b91c0d6d7beca375b811cc17d5a9 100755 (executable)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="strongblurred" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="strongblurred" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="2"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 2 0"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.8 0"/>
                </filter>
-               <filter id="weakblurred" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="weakblurred" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="0.2"/>
                </filter>
        </defs>
index 9e50b943c6a3179462b70c137900fec48f7b2ba6..713fd2d2989b6bda66f8b9cc06341c9e531a8902 100644 (file)
@@ -1,7 +1,7 @@
 <?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">
+               <filter id="shadow" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <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.5 0"/>
                        <feGaussianBlur stdDeviation="1" result="shadow"/>
index fa5a82ed308e4cbb269b3f7f1a08fc98b478bbde..62c0f222d092e30ab98cfcc1f00931379afe0755 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="darkened">
+               <filter id="darkened" color-interpolation-filters="sRGB">
                                <!-- ./tools/hsv-matrix.pl -9 3 0.28 -->
                        <feColorMatrix values="0.74 -0.30 -0.16 0 0 -0.14 0.42 0 0 0 -0.01 -0.49 0.78 0 0 0 0 0 1 0" result="shadow"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="5"/>
@@ -13,7 +13,7 @@
                        </feMerge>
                        <feGaussianBlur stdDeviation="0.3"/>
                </filter>
-               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="5"/>
                                <!-- ./tools/hsv-matrix.pl -9 3.2 0.38 -->
                        <feColorMatrix values="1.07 -0.45 -0.24 0 0 -0.20 0.59 -0.01 0 0 -0.02 -0.72 1.13 0 0 0 0 0 0.56 0" result="shadow"/>
index 44c692b51a6ead9ed71e02aba4355910981025ab..a1acd49c27f5b4ad81bd63f9ecb0dc2b13c819e6 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="darkened">
+               <filter id="darkened" color-interpolation-filters="sRGB">
                                <!-- ./tools/hsv-matrix.pl -9 3 0.28 -->
                        <feColorMatrix values="0.74 -0.30 -0.16 0 0 -0.14 0.42 0 0 0 -0.01 -0.49 0.78 0 0 0 0 0 1 0" result="shadow"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="4"/>
@@ -12,7 +12,7 @@
                                <feMergeNode in="glow"/>
                        </feMerge>
                </filter>
-               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="8"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0" result="glow"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="8"/>
index 5f5993d5734586307e25540623510df7fd7dbf22..4b402c70afb1c5326c6733321c52245b6847c9f3 100755 (executable)
@@ -1,12 +1,12 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="dulled" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="dulled" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="0.3" result="mask"/>
                        <feGaussianBlur in="SourceGraphic" stdDeviation="2"/>
                        <feComposite in2="mask" operator="in"/>
                </filter>
-               <filter id="glowing" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="glowing" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="4"/>
                        <feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.6 0" result="glow"/>
                        <feMerge>
index a33fb996b5599bf6b921240cb5a25c810b8a1b60..bd99fc10de41521dbd8bb5722c98ca05eb0f8381 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
        <defs>
-               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2">
+               <filter id="shining" x="-0.5" y="-0.5" width="2" height="2" color-interpolation-filters="sRGB">
                        <feGaussianBlur stdDeviation="5"/>
                                <!-- ./tools/hsv-matrix.pl -9 3.2 0.38 -->
                        <feColorMatrix values="1.07 -0.45 -0.24 0 0 -0.20 0.59 -0.01 0 0 -0.02 -0.72 1.13 0 0 0 0 0 0.56 0" result="shadow"/>