beta.r3js.org
-=yb4f310 2018-01-16 10:24:57 +01:00
parent 820e44dd20
commit de5e80b80a
2 changed files with 16 additions and 8 deletions

View File

@ -794,14 +794,21 @@ GameLib.Utils.LowerUnderscore = function(name) {
return name.toLowerCase().replace(/\s+/, '_');
};
GameLib.Utils.UpperCaseWordsSpaces = function(word) {
return word.replace(/[-_]/g, ' ').split(' ').reduce(
function(result, word) {
result += word[0].toUpperCase() + word.substr(1);
return result + ' ';
},
''
).trim();
GameLib.Utils.UpperCaseWordsSpaces = function(input) {
var word = input.replace(/[-_]/g, ' ');
word = word.replace(/\s+/, ' ');
var words = word.split(' ');
return words.reduce(
function(result, word) {
result += word[0].toUpperCase() + word.substr(1);
return result + ' ';
},
''
).trim();
};
/**

View File

@ -286,6 +286,7 @@ GameLib.D3.Texture.prototype.updateInstance = function(property) {
if (property === 'flipY') {
this.instance.flipY = this.flipY;
this.instance.needsUpdate = true;
}
if (property === 'encoding') {