mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Merge pull request #11851 from Filoppi/patch-16
Video: Fix lens_distortion post process shader not compiling
This commit is contained in:
commit
82d27fa7a8
@ -81,7 +81,7 @@ void main()
|
|||||||
float2 uv = (widenedRadial/2.0f) + float2(0.5f, 0.5f) + float2(offsetAdd, 0.0f);
|
float2 uv = (widenedRadial/2.0f) + float2(0.5f, 0.5f) + float2(offsetAdd, 0.0f);
|
||||||
|
|
||||||
// Sample the texture at the source location
|
// Sample the texture at the source location
|
||||||
if(any(clamp(uv, 0.0, 1.0) != uv))
|
if (clamp(uv, 0.0, 1.0) != uv)
|
||||||
{
|
{
|
||||||
// black if beyond bounds
|
// black if beyond bounds
|
||||||
SetOutput(float4(0.0, 0.0, 0.0, 0.0));
|
SetOutput(float4(0.0, 0.0, 0.0, 0.0));
|
||||||
|
Loading…
Reference in New Issue
Block a user