Merge pull request #41678 from JFonS/fix_sdf_jumpflood
Fix typo in SDF jumpflood shader
This commit is contained in:
commit
1f2cffb161
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue