ruffle/render/wgpu/shaders
Aaron Hill b140029e95 render: Fix BitmapData.applyFilter with non-full sourceRect
Previously, we were scaling down the source image to fit into
the smaller sourceRect, instead of cropping at the original scale.
This broke the background textures in Fancy Pants World 4 Part 2,
as the scaled-down output image resulted in a smaller rectangle
being returned from 'getColorBoundsRect'

We now crop the image by properly constructing the UV-coordinate
transformation matrix. We were also using the wrong value for the
'destPoint' y coordinate, which I fixed.

This slightly changes the image output of two tests - the new images
now more closely match the Flash output.
2023-03-25 18:44:01 -07:00
..
blend wgpu: Implement Multiply blend mode as a trivial blend 2023-01-12 10:54:03 -05:00
filter render: Fix BitmapData.applyFilter with non-full sourceRect 2023-03-25 18:44:01 -07:00
bitmap.wgsl render: Compile a different version of 'bitmap.wgsl' for Stage3D 2023-03-19 02:15:26 -05:00
color.wgsl wgpu: Fix blown out colors when transforming them above 100% - fixes #9698 2023-02-24 19:01:41 +01:00
common.wgsl wgpu: Changed most pipelines & shaders to only use Pos, not Pos and Color, as vertex attribs 2023-02-05 18:02:19 +01:00
copy.wgsl Get naga_oil shaders working 2023-01-23 11:31:04 +01:00
copy_srgb.wgsl Get naga_oil shaders working 2023-01-23 11:31:04 +01:00
gradient.wgsl wgpu: Merge gradient shaders together 2023-03-06 23:22:09 +01:00