Просмотр исходного кода

Fix scene ubos unsync in webgpu

Popov72 4 лет назад
Родитель
Сommit
07be096cf2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/scene.ts

+ 1 - 1
src/scene.ts

@@ -2003,7 +2003,7 @@ export class Scene extends AbstractScene implements IAnimatable, IClipPlanesHold
      * @param projectionR defines the right Projection matrix to use (if provided)
      */
     public setTransformMatrix(viewL: Matrix, projectionL: Matrix, viewR?: Matrix, projectionR?: Matrix): void {
-        if (this._viewUpdateFlag === viewL.updateFlag && this._projectionUpdateFlag === projectionL.updateFlag) {
+        if (!ThinEngine.Features.trackUbosInFrame && this._viewUpdateFlag === viewL.updateFlag && this._projectionUpdateFlag === projectionL.updateFlag) {
             return;
         }