Skip to content

Commit 7cc1c12

Browse files
authored
Update vox.md
1 parent e6423a4 commit 7cc1c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_projects/vox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ void main() {
325325
if (tmin>tmax) {
326326
fragColor = vec4(palette[3]/256.0,1);
327327
}
328-
if (o.x<=-1.0||o.x>=sz1||o.y<=-1.0||o.y>=sz1||o.z<=-1.0||o.z>=sz1) o += tmin*d*0.999999;
328+
if (tmin>0.0) o += tmin*d*0.999999;
329329
vec3 v = floor(o);
330330
vec3 s = sign(d);
331331
vec3 tm = (v-o+0.5+s*0.5)*inv;

0 commit comments

Comments
 (0)