Skip to content

Commit

Permalink
gltf 0.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
epreston committed Nov 30, 2023
1 parent e2c998c commit 9d234c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/gltf/dist/gltf.esm-bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function assignExtrasToUserData(object, gltfDef) {
if (typeof gltfDef.extras === "object") {
Object.assign(object.userData, gltfDef.extras);
} else {
console.warn("GLTFLoader: Ignoring primitive type .extras, " + gltfDef.extras);
console.warn(`GLTFLoader: Ignoring primitive type .extras, ${gltfDef.extras}`);
}
}
}
Expand Down Expand Up @@ -87,6 +87,7 @@ class GLTFLightsExtension {
case "point":
lightNode = new PointLight(color);
lightNode.distance = range;
lightNode.decay = 2;
break;
case "spot":
lightNode = new SpotLight(color);
Expand All @@ -98,12 +99,12 @@ class GLTFLightsExtension {
lightNode.penumbra = 1 - lightDef.spot.innerConeAngle / lightDef.spot.outerConeAngle;
lightNode.target.position.set(0, 0, -1);
lightNode.add(lightNode.target);
lightNode.decay = 2;
break;
default:
throw new Error("GLTFLoader: Unexpected light type: " + lightDef.type);
}
lightNode.position.set(0, 0, 0);
lightNode.decay = 2;
assignExtrasToUserData(lightNode, lightDef);
if (lightDef.intensity !== void 0)
lightNode.intensity = lightDef.intensity;
Expand Down
2 changes: 1 addition & 1 deletion packages/gltf/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@renderlayer/gltf",
"version": "0.0.11",
"version": "0.0.12",
"description": "glTF 2.0 library used by @renderlayer packages.",
"module": "./dist/gltf.esm-bundler.js",
"exports": "./dist/gltf.esm-bundler.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/renderlayer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@renderlayer/draco": "~0.0.6",
"@renderlayer/extras": "~0.0.4",
"@renderlayer/geometries": "~0.0.6",
"@renderlayer/gltf": "~0.0.11",
"@renderlayer/gltf": "~0.0.12",
"@renderlayer/interpolants": "~0.0.3",
"@renderlayer/keyframes": "~0.0.4",
"@renderlayer/lights": "~0.0.4",
Expand Down

0 comments on commit 9d234c5

Please sign in to comment.