Skip to content

Commit a69179a

Browse files
committed
docs: add legacy to spinning ik
1 parent d7508c8 commit a69179a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/demo/src/app/animation-skinning-ik/animation-skinning-ik.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extend({ TransformControls, CCDIKHelper });
4545
template: `
4646
<ngt-color *args="['#dddddd']" attach="background" />
4747
<ngt-fog-exp2 *args="['#ffffff', 0.17]" attach="fog" />
48-
<ngt-ambient-light [intensity]="8" color="#ffffff" />
48+
<ngt-ambient-light [intensity]="8" />
4949
<ngt-primitive *args="[model$ | ngtPush : null]" (afterAttach)="onAfterModelAttach()" />
5050
<ngt-cube-camera #cubeCamera *args="[0.05, 50, cubeRenderTarget]" />
5151
<ng-container *ngIf="ooi['kira']">
@@ -153,6 +153,7 @@ export class Scene {
153153
template: `
154154
<ngt-canvas
155155
[sceneGraph]="SceneGraph"
156+
[legacy]="true"
156157
[camera]="{
157158
fov: 55,
158159
near: 0.001,
@@ -169,7 +170,7 @@ export default class DemoAnimationSkinningIK {
169170
readonly SceneGraph = Scene;
170171

171172
onCreated({ scene, camera, gl }: NgtState) {
173+
applyProps(gl, { physicallyCorrectLights: true });
172174
camera.lookAt(scene.position);
173-
gl.physicallyCorrectLights = true;
174175
}
175176
}

0 commit comments

Comments
 (0)