Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d09a28 commit 451aa0bCopy full SHA for 451aa0b
libs/soba/materials/src/mesh-refraction-material/mesh-refraction-material.ts
@@ -143,8 +143,8 @@ export class NgtsMeshRefractionMaterial {
143
injectBeforeRender(({ camera }) => {
144
const material = this.materialRef.nativeElement;
145
if (material) {
146
- (material as any).viewMatrixInverse = camera.matrixWorld;
147
- (material as any).projectionMatrixInverse = camera.projectionMatrixInverse;
+ (material as any)['viewMatrixInverse'] = camera.matrixWorld;
+ (material as any)['projectionMatrixInverse'] = camera.projectionMatrixInverse;
148
}
149
});
150
this.setupGeometry();
0 commit comments