Fix typo in SDF jumpflood shader

This commit is contained in:
JFonS 2020-09-01 14:40:59 +02:00
parent 877246a78e
commit 8ab510a130

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;