Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quakejs-files

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quakejs-files - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

27

lib/shader.js

@@ -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
};
};

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc