Explorar o código

Fix scene ubos unsync in webgpu

Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
07be096cf2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }