Explorar el Código

Fix scene ubos unsync in webgpu

Popov72 hace 4 años
padre
commit
07be096cf2
Se han modificado 1 ficheros con 1 adiciones y 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;
         }