Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

blank: fix inverted backface cull — was showing back faces, hiding front

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+1 -1
+1 -1
system/public/aesthetic.computer/disks/blank.mjs
··· 249 249 const nz = e1[0] * e2[1] - e1[1] * e2[0]; 250 250 // Dot with view direction — positive = facing camera 251 251 const dot = nx * viewDirX + ny * viewDirY + nz * viewDirZ; 252 - if (dot <= 0) continue; // back-facing 252 + if (dot >= 0) continue; // normal faces away from camera → back-facing 253 253 frontFaces.add(fi); 254 254 const z = (proj[a][2] + proj[b][2] + proj[c][2] + proj[d][2]) / 4; 255 255 drawList.push({ z, type: "face", proj, verts: [a, b, c, d], color, tag });