Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Lotter committed Aug 9, 2016
1 parent 027294b commit 11c1b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/test-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const fs = require('fs');
const path = require('path');

const opt = {
fieldType: 'msdf',
};
generateBMFont(path.join(__dirname, 'Roboto-Regular.ttf'), opt, (error, textures, font) => {
if (error) throw error;
Expand Down
4 changes: 2 additions & 2 deletions test/test-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function init () {

scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 0.1, 1000);
camera.position.z = 100;
camera.position.z = 350;

renderer = new THREE.WebGLRenderer({canvas});
renderer.setClearColor(0xffffff);
Expand Down Expand Up @@ -48,7 +48,7 @@ fontPreloader((err, data) => {
var geometry = createTextGeometry({
font: data.font
});
geometry.update('test text');
geometry.update('Foo*bar!');
mesh = new THREE.Mesh(geometry, material);
mesh.rotation.x = Math.PI;
// mesh.position.z = -130;
Expand Down

0 comments on commit 11c1b52

Please sign in to comment.