1.1.1 • Published 1 year ago

rtpackjs v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

RTPackJS

Converting a texture image into ProtonSDK standard texture.

Requirements

  • Node.js v14+

Installing

npm

npm install rtpackjs

or using yarn

yarn add rtpackjs

Example

const { RTTEX } = require("rtpackjs");
const { writeFileSync, readFileSync } = require("fs");

const sample = readFileSync("./test/image.rttex");

(async () => {
  const decoded = await RTTEX.decode(sample);
  writeFileSync("./test/image.png", decoded);

  const encoded = await RTTEX.encode(decoded);
  writeFileSync("./test/new_image.rttex", encoded);
})();

(async () => {
  const rttex = new RTTEX(sample);

  console.log(rttex);
  console.log(rttex.parseRTPACK());
  console.log(rttex.parseRTTXTR());
})();

Credits

1.1.1

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago