Re: [fxtf-drafts] [filter-effects] Clarify "smoothing technique" for feSpotLight's limitingConeAngle

I tried an adaption from @smfr's original version:

```xml
<svg width="500px" height="610px" xmlns="http://www.w3.org/2000/svg">
<defs>
    <filter id="filter" filterUnits="objectBoundingBox">
        <feDiffuseLighting lighting-color="rgb(0, 255, 0)" x="-120" y="85">
            <feSpotLight x="-10" y="-20" z="300" pointsAtX="180" pointsAtY="220" pointsAtZ="50" limitingConeAngle="12" />
        </feDiffuseLighting>
    </filter>
</defs>
<rect x="110" y="150" width="450" height="320" fill="none" filter="url(#filter)"/>
</svg>
```

Adobe Photoshop:
<img width="627" alt="screen shot 2018-01-05 at 08 32 37" src="https://user-images.githubusercontent.com/1298200/34599554-4ce2c4ce-f1f3-11e7-9169-362f326107e8.png">

Firefox:
<img width="370" alt="screen shot 2018-01-05 at 08 32 58" src="https://user-images.githubusercontent.com/1298200/34599556-55f7eecc-f1f3-11e7-826f-44615b20b6c3.png">

Chrome:
<img width="494" alt="screen shot 2018-01-05 at 08 33 15" src="https://user-images.githubusercontent.com/1298200/34599567-606724fe-f1f3-11e7-9a10-4acce25bfa97.png">

Safari:
<img width="370" alt="screen shot 2018-01-05 at 08 34 00" src="https://user-images.githubusercontent.com/1298200/34599577-68bacc5a-f1f3-11e7-948f-ee2ff3b9e631.png">

Notes:
* Chrome needed `<feFlood/>` to work (should not be required).
* Adobe Photoshop/Illustrator apply an offset which is likely a result of the unclear sub region spec text from SVG 1.1.
* Safari's scale factor is off. (There is an offset too for `filterUnits="userSpaceOnUse"`.)

I still have the assumption that Safari and Chrome draw the lighting in low resolution, upscale and apply a bilinear interpolation filter while Adobe Photoshop/Illustrator and Firefox somehow operate on the actual filter space. But this needs more input from implementers.


-- 
GitHub Notification of comment by dirkschulze
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/244#issuecomment-355491642 using your GitHub account

Received on Friday, 5 January 2018 07:40:29 UTC