We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8ca8a commit 5e557e5Copy full SHA for 5e557e5
src/type/p5.Font.js
@@ -591,7 +591,7 @@ export class Font {
591
if (extrude !== 0) {
592
geom.computeNormals();
593
for (const face of geom.faces) {
594
- if (face.every(idx => geom.vertices[idx].z <= -extrude * 0.5 + 0.1)) {
+ if (face.every(idx => geom.vertices[idx].z <= -extrude * 0.5 + 0.1 || geom.vertices[idx].z >= extrude * 0.5 - 0.1)) {
595
for (const idx of face) geom.vertexNormals[idx].set(0, 0, -1);
596
face.reverse();
597
}
0 commit comments