Skip to content

Commit

Permalink
Fix regExp
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Jan 1, 2024
1 parent 7acf4ef commit 9132b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects/Effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export abstract class Effect extends Pass {

get hasMainSupportFunction(): boolean {

const regExp = /void\s+mainSupport\s*\(.*\)/;
const regExp = /void\s+mainSupport\s*\(.*vec2\s+\w+\)/;
return this.vertexShader !== null && regExp.test(this.vertexShader);

}
Expand Down

0 comments on commit 9132b97

Please sign in to comment.