فهرست منبع

isrgbd tag on texture

Sebastien Vandenberghe 5 سال پیش
والد
کامیت
709150fa33
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/Engines/webgpuEngine.ts

+ 2 - 2
src/Engines/webgpuEngine.ts

@@ -1170,7 +1170,7 @@ export class WebGPUEngine extends Engine {
             texture.height = height;
             texture.baseWidth = width;
             texture.baseHeight = height;
-            texture._isRGBD = webglEngineTexture._isRGBD;
+            texture._isRGBD = texture._isRGBD || webglEngineTexture._isRGBD;
             texture._sphericalPolynomial = webglEngineTexture._sphericalPolynomial;
 
             let mipMaps = Scalar.Log2(Math.max(width, height));
@@ -1249,7 +1249,7 @@ export class WebGPUEngine extends Engine {
             texture.baseHeight = height;
             texture.depth = depth;
             texture.baseDepth = depth;
-            texture._isRGBD = webglEngineTexture._isRGBD;
+            texture._isRGBD = texture._isRGBD || webglEngineTexture._isRGBD;
             texture._sphericalPolynomial = webglEngineTexture._sphericalPolynomial;
 
             let mipMaps = Scalar.Log2(width);