Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 451aa0b

Browse files
committed
chore(soba): use index accessor for mesh refraction material
1 parent 0d09a28 commit 451aa0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/soba/materials/src/mesh-refraction-material/mesh-refraction-material.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export class NgtsMeshRefractionMaterial {
143143
injectBeforeRender(({ camera }) => {
144144
const material = this.materialRef.nativeElement;
145145
if (material) {
146-
(material as any).viewMatrixInverse = camera.matrixWorld;
147-
(material as any).projectionMatrixInverse = camera.projectionMatrixInverse;
146+
(material as any)['viewMatrixInverse'] = camera.matrixWorld;
147+
(material as any)['projectionMatrixInverse'] = camera.projectionMatrixInverse;
148148
}
149149
});
150150
this.setupGeometry();

0 commit comments

Comments
 (0)