Commit 30142ed
authored
fix(texture): fix texture overblur with st-blur parameters (#5071)
Fixes #5069
This PR fixes the texture blur overstimate reported in #5069
We provide the following changes:
* Use the mathematically correct Pythagorean form to properly adjust the
ellispse footprint with st-blur parameters.
* Add a new legacy_texture_blur attribute in TextureSystem to opt into
the fix without breaking existing renders.
* Add a new --fix-texture-blur option in testtex to enable the fix.
* Add a new texture-blurfix test.
Note: This PR has been partially edited using the Claude coding
assistant.
---------
Signed-off-by: Pascal Lecocq <pascal.lecocq@gmail.com>1 parent 583ace5 commit 30142ed
15 files changed
Lines changed: 81 additions & 9 deletions
File tree
- src
- cmake
- libtexture
- testtex
- testsuite/texture-blurfix
- ref
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
470 | 477 | | |
471 | 478 | | |
472 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
753 | 754 | | |
754 | 755 | | |
755 | 756 | | |
| |||
907 | 908 | | |
908 | 909 | | |
909 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
910 | 915 | | |
911 | 916 | | |
912 | 917 | | |
| |||
926 | 931 | | |
927 | 932 | | |
928 | 933 | | |
| 934 | + | |
929 | 935 | | |
930 | 936 | | |
931 | 937 | | |
| |||
975 | 981 | | |
976 | 982 | | |
977 | 983 | | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
978 | 988 | | |
979 | 989 | | |
980 | 990 | | |
| |||
1890 | 1900 | | |
1891 | 1901 | | |
1892 | 1902 | | |
1893 | | - | |
| 1903 | + | |
1894 | 1904 | | |
1895 | 1905 | | |
1896 | 1906 | | |
| |||
1901 | 1911 | | |
1902 | 1912 | | |
1903 | 1913 | | |
1904 | | - | |
1905 | | - | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1906 | 1930 | | |
1907 | 1931 | | |
1908 | 1932 | | |
| |||
2273 | 2297 | | |
2274 | 2298 | | |
2275 | 2299 | | |
2276 | | - | |
| 2300 | + | |
| 2301 | + | |
2277 | 2302 | | |
2278 | 2303 | | |
2279 | 2304 | | |
| |||
3388 | 3413 | | |
3389 | 3414 | | |
3390 | 3415 | | |
3391 | | - | |
| 3416 | + | |
| 3417 | + | |
3392 | 3418 | | |
3393 | 3419 | | |
3394 | 3420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
1831 | 1834 | | |
1832 | 1835 | | |
1833 | 1836 | | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1834 | 1841 | | |
1835 | 1842 | | |
1836 | 1843 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments