Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11851 from Filoppi/patch-16
Video: Fix lens_distortion post process shader not compiling
  • Loading branch information
AdmiralCurtiss committed Jun 1, 2023
2 parents 6743ca8 + 79120e0 commit 82d27fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Sys/Shaders/lens_distortion.glsl
Expand Up @@ -81,7 +81,7 @@ void main()
float2 uv = (widenedRadial/2.0f) + float2(0.5f, 0.5f) + float2(offsetAdd, 0.0f);

// 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
SetOutput(float4(0.0, 0.0, 0.0, 0.0));
Expand Down

0 comments on commit 82d27fa

Please sign in to comment.