Commit: f1d9fe95e8b1f874386f9db170905c06160b0388
Author: Jeroen Bakker
Date: Fri Dec 2 12:04:44 2022 +0100
Branches: temp-vulkan-shader
https://developer.blender.org/rBf1d9fe95e8b1f874386f9db170905c06160b0388
Fixed lens distortion compilation.
===================================================================
M
source/blender/compositor/realtime_compositor/shaders/compositor_screen_lens_distortion.glsl
===================================================================
diff --git
a/source/blender/compositor/realtime_compositor/shaders/compositor_screen_lens_distortion.glsl
b/source/blender/compositor/realtime_compositor/shaders/compositor_screen_lens_distortion.glsl
index dc572ea5aaf..58c1d97e81d 100644
---
a/source/blender/compositor/realtime_compositor/shaders/compositor_screen_lens_distortion.glsl
+++
b/source/blender/compositor/realtime_compositor/shaders/compositor_screen_lens_distortion.glsl
@@ -20,9 +20,9 @@ vec3 compute_chromatic_distortion_scale(float
distance_squared)
/* Compute the image coordinates after distortion by the given distortion
scale computed by the
* compute_distortion_scale function. Note that the function expects centered
normalized UV
* coordinates but outputs non-centered image coordinates. */
-vec2 compute_distorted_uv(vec2 uv, float scale)
+vec2 compute_distorted_uv(vec2 uv, float uv_scale)
{
- return (uv * scale + 0.5) * texture_size(input_tx) - 0.5;
+ return (uv * uv_scale + 0.5) * texture_size(input_tx) - 0.5;
}
/* Compute the number of integration steps that should be used to approximate
the distorted pixel
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs