quakejs-files
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -75,2 +75,5 @@ var SURF = require('./surfaceflags'); | ||
this.sky = false; | ||
this.cloudSize = 0; | ||
this.innerBox = []; | ||
this.outerBox = []; | ||
this.fog = false; | ||
@@ -212,6 +215,4 @@ this.polygonOffset = false; | ||
// TODO Parse cloud size. | ||
case 'skyparms': | ||
script.sky = true; | ||
script.sort = SORT.ENVIRONMENT; | ||
parseSkyparms(tokens, script); | ||
break; | ||
@@ -303,2 +304,20 @@ | ||
function parseSkyparms(tokens, script) { | ||
var suffixes = ['rt', 'bk', 'lf', 'ft', 'up', 'dn']; | ||
var innerBox = tokens.next().toLowerCase(); | ||
var cloudSize = parseInt(tokens.next(), 10); | ||
var outerBox = tokens.next().toLowerCase(); | ||
script.sky = true; | ||
script.innerBox = innerBox === '-' ? [] : suffixes.map(function (suf) { | ||
return innerBox + '_' + suf + '.tga'; | ||
}); | ||
script.cloudSize = cloudSize; | ||
script.outerBox = outerBox === '-' ? [] : suffixes.map(function (suf) { | ||
return outerBox + '_' + suf + '.tga'; | ||
}); | ||
script.sort = SORT.ENVIRONMENT; | ||
} | ||
function parseStage(tokens, script, lightmapIndex) { | ||
@@ -503,2 +522,2 @@ var stage = new ShaderStage(); | ||
loadShader: loadShader | ||
}; | ||
}; |
{ | ||
"name": "quakejs-files", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Parse quake3 `.bsp`, `.md3`, `.shader` and `.skin` files into JavaScript friendly objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47827
1269