Merge pull request #41678 from JFonS/fix_sdf_jumpflood

Fix typo in SDF jumpflood shader
This commit is contained in:
Rémi Verschelde 2020-09-01 19:53:50 +02:00 committed by GitHub
commit 1f2cffb161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;