Browse Source

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js into WebGPU

sebavan 5 năm trước cách đây
mục cha
commit
708ef83092
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Engines/Native/nativeShaderProcessor.ts

+ 1 - 1
src/Engines/Native/nativeShaderProcessor.ts

@@ -67,7 +67,7 @@ export class NativeShaderProcessor extends WebGL2ShaderProcessor {
             throw new Error("Can't find bgfx name mapping");
         }
         attribute = attribute.replace(name, newName);
-        this._replacements.push({ searchValue: new RegExp(`\\b${name}\\b`), replaceValue: `${newName}` });
+        this._replacements.push({ searchValue: new RegExp(`\\b${name}\\b`, 'g'), replaceValue: `${newName}` });
         return `layout(location=${location}) ${super.attributeProcessor(attribute)}`;
     }