diff --git a/test/unit/visual/cases/webgl.js b/test/unit/visual/cases/webgl.js index 0649b00f6b..e503f80981 100644 --- a/test/unit/visual/cases/webgl.js +++ b/test/unit/visual/cases/webgl.js @@ -500,14 +500,15 @@ visualSuite('WebGL', function() { '/unit/assets/Inconsolata-Bold.ttf' ); p5.textSize(20); - p5.textAlign(p5.CENTER, p5.TOP); const geom = font.textToModel('p5*js', 0, 0, { sampleFactor: 2 }); + geom.normalize(); p5.background(255); p5.normalMaterial(); p5.rotateX(p5.PI*0.1); p5.rotateY(p5.PI*0.1); + p5.scale(50/200); p5.model(geom); screenshot(); }); @@ -518,15 +519,16 @@ visualSuite('WebGL', function() { '/unit/assets/Inconsolata-Bold.ttf' ); p5.textSize(20); - p5.textAlign(p5.CENTER, p5.TOP); const geom = font.textToModel('p5*js', 0, 0, { extrude: 10, sampleFactor: 2 }); + geom.normalize(); p5.background(255); p5.normalMaterial(); p5.rotateX(p5.PI*0.1); p5.rotateY(p5.PI*0.1); + p5.scale(50/200); p5.model(geom); screenshot(); }); diff --git a/test/unit/visual/screenshots/WebGL/textToModel/Extruded/000.png b/test/unit/visual/screenshots/WebGL/textToModel/Extruded/000.png index f23e88f4ba..5751dac472 100644 Binary files a/test/unit/visual/screenshots/WebGL/textToModel/Extruded/000.png and b/test/unit/visual/screenshots/WebGL/textToModel/Extruded/000.png differ diff --git a/test/unit/visual/screenshots/WebGL/textToModel/Flat/000.png b/test/unit/visual/screenshots/WebGL/textToModel/Flat/000.png index 75114b5468..194da82c84 100644 Binary files a/test/unit/visual/screenshots/WebGL/textToModel/Flat/000.png and b/test/unit/visual/screenshots/WebGL/textToModel/Flat/000.png differ