浏览代码

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

sebavan 5 年之前
父节点
当前提交
708ef83092
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)}`;
     }