summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-01 19:53:50 +0200
committerGitHub <noreply@github.com>2020-09-01 19:53:50 +0200
commit1f2cffb16164cf5ec0715d7cc90669028be60648 (patch)
tree307667c9cb640962cfdbdb192414f211f1f80742
parent8ce02caf401d37647df9e1c915dd2696295dca22 (diff)
parent8ab510a1300ba6d559720881ff4c77195593d858 (diff)
Merge pull request #41678 from JFonS/fix_sdf_jumpflood
Fix typo in SDF jumpflood shader
-rw-r--r--servers/rendering/rasterizer_rd/shaders/sdfgi_preprocess.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/rasterizer_rd/shaders/sdfgi_preprocess.glsl b/servers/rendering/rasterizer_rd/shaders/sdfgi_preprocess.glsl
index d7d19897e3..dd0ca5c506 100644
--- a/servers/rendering/rasterizer_rd/shaders/sdfgi_preprocess.glsl
+++ b/servers/rendering/rasterizer_rd/shaders/sdfgi_preprocess.glsl
@@ -338,7 +338,7 @@ void main() {
continue; //was not initialized yet, ignore
}
- float q_dist = distance(posf, vec3(p.xyz));
+ float q_dist = distance(posf, vec3(q.xyz));
if (p.w == 0 || q_dist < p_dist) {
p = q; //just replace because current is unused
p_dist = q_dist;