urdf-loader
Advanced tools
Comparing version 0.11.0 to 0.12.0
{ | ||
"name": "urdf-loader", | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"description": "URDF Loader for THREE.js and webcomponent viewer", | ||
@@ -39,9 +39,9 @@ "main": "src/URDFLoader.js", | ||
"peerDependencies": { | ||
"three": ">=0.144.0" | ||
"three": ">=0.152.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/core": "^7.21.8", | ||
"@babel/preset-env": "^7.21.5", | ||
"@webcomponents/webcomponentsjs": "^2.4.4", | ||
"babel-jest": "^25.4.0", | ||
"babel-jest": "^29.5.0", | ||
"concurrently": "^6.2.1", | ||
@@ -57,3 +57,3 @@ "eslint": "^7.10.0", | ||
"static-server": "^3.0.0", | ||
"three": "^0.135.0", | ||
"three": "^0.152.2", | ||
"typescript": "^3.9.7", | ||
@@ -60,0 +60,0 @@ "rollup": "^2.29.0" |
@@ -42,3 +42,3 @@ import * as THREE from 'three'; | ||
get ambientColor() { return this.getAttribute('ambient-color') || '#455A64'; } | ||
get ambientColor() { return this.getAttribute('ambient-color') || '#8ea0a8'; } | ||
set ambientColor(val) { val ? this.setAttribute('ambient-color', val) : this.removeAttribute('ambient-color'); } | ||
@@ -122,3 +122,3 @@ | ||
renderer.shadowMap.type = THREE.PCFSoftShadowMap; | ||
renderer.outputEncoding = THREE.sRGBEncoding; | ||
renderer.outputColorSpace = THREE.SRGBColorSpace; | ||
@@ -458,3 +458,3 @@ // Camera setup | ||
m.map.encoding = THREE.GammaEncoding; | ||
m.map.colorSpace = THREE.SRGBColorSpace; | ||
@@ -461,0 +461,0 @@ } |
@@ -476,3 +476,3 @@ import * as THREE from 'three'; | ||
material.color.setRGB(rgba[0], rgba[1], rgba[2]).convertSRGBToLinear(); | ||
material.color.setRGB(rgba[0], rgba[1], rgba[2]); | ||
material.opacity = rgba[3]; | ||
@@ -492,3 +492,3 @@ material.transparent = rgba[3] < 1; | ||
material.map = loader.load(filePath); | ||
material.map.encoding = THREE.sRGBEncoding; | ||
material.map.colorSpace = THREE.SRGBColorSpace; | ||
@@ -495,0 +495,0 @@ } |
@@ -67,3 +67,3 @@ (function (global, factory) { | ||
get ambientColor() { return this.getAttribute('ambient-color') || '#455A64'; } | ||
get ambientColor() { return this.getAttribute('ambient-color') || '#8ea0a8'; } | ||
set ambientColor(val) { val ? this.setAttribute('ambient-color', val) : this.removeAttribute('ambient-color'); } | ||
@@ -147,3 +147,3 @@ | ||
renderer.shadowMap.type = THREE__namespace.PCFSoftShadowMap; | ||
renderer.outputEncoding = THREE__namespace.sRGBEncoding; | ||
renderer.outputColorSpace = THREE__namespace.SRGBColorSpace; | ||
@@ -483,3 +483,3 @@ // Camera setup | ||
m.map.encoding = THREE__namespace.GammaEncoding; | ||
m.map.colorSpace = THREE__namespace.SRGBColorSpace; | ||
@@ -486,0 +486,0 @@ } |
@@ -890,3 +890,3 @@ (function (global, factory) { | ||
material.color.setRGB(rgba[0], rgba[1], rgba[2]).convertSRGBToLinear(); | ||
material.color.setRGB(rgba[0], rgba[1], rgba[2]); | ||
material.opacity = rgba[3]; | ||
@@ -906,3 +906,3 @@ material.transparent = rgba[3] < 1; | ||
material.map = loader.load(filePath); | ||
material.map.encoding = THREE__namespace.sRGBEncoding; | ||
material.map.colorSpace = THREE__namespace.SRGBColorSpace; | ||
@@ -909,0 +909,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
259992