Skip to content

Commit 21272c8

Browse files
msub2toji
authored andcommitted
Address API changes from three.js r113 -> r127
1 parent 614bf32 commit 21272c8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/viewer/src/controllerModel.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ class ControllerModel extends THREE.Object3D {
104104
} else if (valueNodeProperty === Constants.VisualResponseProperty.TRANSFORM) {
105105
const minNode = this.nodes[minNodeName];
106106
const maxNode = this.nodes[maxNodeName];
107-
THREE.Quaternion.slerp(
107+
valueNode.quaternion.slerpQuaternions(
108108
minNode.quaternion,
109109
maxNode.quaternion,
110-
valueNode.quaternion,
111110
value
112111
);
113112

packages/viewer/src/modelViewer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function initializeThree() {
133133
three.scene.background = new THREE.Color(0x00aa44);
134134
three.renderer = new THREE.WebGLRenderer({ antialias: true });
135135
three.renderer.setSize(width, height);
136-
three.renderer.gammaOutput = true;
136+
three.renderer.outputEncoding = THREE.sRGBEncoding;
137137

138138
// Set up the controls for moving the scene around
139139
three.cameraControls = new OrbitControls(three.camera, three.renderer.domElement);

0 commit comments

Comments
 (0)