소스 검색

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)}`;
     }