From 981e910330391e6c148316ad376a26e48e3bb7c5 Mon Sep 17 00:00:00 2001 From: Popov72 Date: Mon, 18 Nov 2024 11:42:01 +0100 Subject: [PATCH] Set view matrix --- packages/dev/materials/src/terrain/terrainMaterial.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/dev/materials/src/terrain/terrainMaterial.ts b/packages/dev/materials/src/terrain/terrainMaterial.ts index 32511fb8382..591cbce437b 100644 --- a/packages/dev/materials/src/terrain/terrainMaterial.ts +++ b/packages/dev/materials/src/terrain/terrainMaterial.ts @@ -346,6 +346,7 @@ export class TerrainMaterial extends PushMaterial { // Matrices this.bindOnlyWorldMatrix(world); + this._activeEffect.setMatrix("view", scene.getViewMatrix()); this._activeEffect.setMatrix("viewProjection", scene.getTransformMatrix()); // Bones