Webgl / linting & test fixes

This commit is contained in:
Olivier Guyot
2019-09-25 12:44:55 +02:00
parent 610a846149
commit 9e55a8b2f0
8 changed files with 34 additions and 33 deletions

View File

@@ -22,16 +22,17 @@ texture.src = 'data/ufo_shapes.png';
// This describes the content of the associated sprite sheet
// coords are u0, v0, u1, v1 for a given shape
const shapeTextureCoords = {
'light': [0, 0.5, 0.25, 0],
'sphere': [0.25, 0.5, 0.5, 0],
'circle': [0.25, 0.5, 0.5, 0],
'disc': [0.5, 0.5, 0.75, 0],
'oval': [0.5, 0.5, 0.75, 0],
'triangle': [0.75, 0.5, 1, 0],
'fireball': [0, 1, 0.25, 0.5],
'default': [0.75, 1, 1, 0.5]
};
// FIXME: re enable this
// const shapeTextureCoords = {
// 'light': [0, 0.5, 0.25, 0],
// 'sphere': [0.25, 0.5, 0.5, 0],
// 'circle': [0.25, 0.5, 0.5, 0],
// 'disc': [0.5, 0.5, 0.75, 0],
// 'oval': [0.5, 0.5, 0.75, 0],
// 'triangle': [0.75, 0.5, 1, 0],
// 'fireball': [0, 1, 0.25, 0.5],
// 'default': [0.75, 1, 1, 0.5]
// };
const oldColor = [255, 160, 110];
const newColor = [180, 255, 200];