Skip to content

Commit

Permalink
chore(deps): bump three from 0.165.0 to 0.168.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln committed Sep 24, 2024
1 parent 4937064 commit f7303de
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
30 changes: 20 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@
},
"peerDependencies": {
"proj4": "^2.11.0",
"three": "^0.165.0"
"three": "^0.168.0"
},
"devDependencies": {
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/plugin-transform-runtime": "^7.25.4",
"@babel/preset-env": "^7.25.4",
"@babel/register": "^7.24.6",
"@types/three": "^0.165.0",
"@types/three": "^0.168.0",
"@xmldom/xmldom": "^0.9.2",
"babel-inline-import-loader": "^1.0.1",
"babel-loader": "^9.2.1",
Expand Down Expand Up @@ -114,7 +114,7 @@
"q": "^1.5.1",
"replace-in-file": "^8.1.0",
"sinon": "^19.0.2",
"three": "^0.165.0",
"three": "^0.168.0",
"typescript": "^5.6.2",
"webgl-mock": "^0.1.7",
"webpack": "^5.94.0",
Expand Down
7 changes: 4 additions & 3 deletions src/Renderer/LayeredMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ const defaultTex = new THREE.Texture();
// from three.js packDepthToRGBA
const UnpackDownscale = 255 / 256; // 0..1 -> fraction (excluding 1)
const bitSh = new THREE.Vector4(
UnpackDownscale / (256.0 * 256.0 * 256.0),
UnpackDownscale / (256.0 * 256.0),
UnpackDownscale,
UnpackDownscale / 256.0,
UnpackDownscale);
UnpackDownscale / (256.0 * 256.0),
UnpackDownscale / (256.0 * 256.0 * 256.0),
);

export function unpack1K(color, factor) {
return factor ? bitSh.dot(color) * factor : bitSh.dot(color);
Expand Down

0 comments on commit f7303de

Please sign in to comment.