@erik9994857/cag 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erik9994857/cag",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "CaG — A code library and custom language for building 3D worlds with .cagc files, .bbmodel support, and auto UV mapping",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -258,10 +258,10 @@ ElectronRunner.prototype.getRendererSource = function () {
258
258
 
259
259
  // Face helper
260
260
  js.push("function addFace(pos, uvArr, nrm, v0, v1, v2, v3, fuv, normal) {");
261
- js.push(" pos.push(v0[0],v0[1],v0[2], v1[0],v1[1],v1[2], v2[0],v2[1],v2[2]);");
262
- js.push(" pos.push(v0[0],v0[1],v0[2], v2[0],v2[1],v2[2], v3[0],v3[1],v3[2]);");
263
- js.push(" uvArr.push(fuv[0],fuv[1], fuv[2],fuv[1], fuv[2],fuv[3]);");
264
- js.push(" uvArr.push(fuv[0],fuv[1], fuv[2],fuv[3], fuv[0],fuv[3]);");
261
+ js.push(" pos.push(v0[0],v0[1],v0[2], v2[0],v2[1],v2[2], v1[0],v1[1],v1[2]);");
262
+ js.push(" pos.push(v0[0],v0[1],v0[2], v3[0],v3[1],v3[2], v2[0],v2[1],v2[2]);");
263
+ js.push(" uvArr.push(fuv[0],fuv[1], fuv[2],fuv[3], fuv[2],fuv[1]);");
264
+ js.push(" uvArr.push(fuv[0],fuv[1], fuv[0],fuv[3], fuv[2],fuv[3]);");
265
265
  js.push(" for (var i = 0; i < 6; i++) {");
266
266
  js.push(" nrm.push(normal[0], normal[1], normal[2]);");
267
267
  js.push(" }");