Browse Source

Fix scene ubos unsync in webgpu

Popov72 4 năm trước cách đây
mục cha
commit
07be096cf2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }