瀏覽代碼

Merge pull request #8184 from Popov72/pbr-all-inline

Follow up to #8183
David Catuhe 5 年之前
父節點
當前提交
a779b8b85a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Engines/Processors/shaderCodeInliner.ts

+ 2 - 2
src/Engines/Processors/shaderCodeInliner.ts

@@ -11,7 +11,7 @@ interface IInlineFunctionDescr {
 */
 export class ShaderCodeInliner {
 
-    static readonly RegexpFindFunctionNameAndType = /((\s+?)(\w+)\s+(\w+)\s*?)$/;
+    private static readonly _RegexpFindFunctionNameAndType = /((\s+?)(\w+)\s+(\w+)\s*?)$/;
 
     private _sourceCode: string;
     private _functionDescr: IInlineFunctionDescr[];
@@ -73,7 +73,7 @@ export class ShaderCodeInliner {
                 continue;
             }
 
-            const funcNameMatch = ShaderCodeInliner.RegexpFindFunctionNameAndType.exec(this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex));
+            const funcNameMatch = ShaderCodeInliner._RegexpFindFunctionNameAndType.exec(this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex));
             if (!funcNameMatch) {
                 if (this.debug) {
                     console.warn(`Could not extract the name/type of the function from: ${this._sourceCode.substring(inlineTokenIndex + this.inlineToken.length, funcParamsStartIndex)}`);