Skip to content

Commit

Permalink
Update FileShaderDeclaration.vertexSource
Browse files Browse the repository at this point in the history
  • Loading branch information
alemart committed Jun 30, 2024
1 parent 78f6891 commit c40137a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/shader-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class FileShaderDeclaration extends ShaderDeclaration
// we override this method to include the filepath. The motivation
// is to easily identify the file when debugging compiling errors.
return this._addHeader(
'// File: ' + this._vsFilepath,
'// File: ' + (this._vsFilepath != '' ? this._vsFilepath : 'default vertex shader of ' + this._fsFilepath),
super.vertexSource
);
}
Expand Down

0 comments on commit c40137a

Please sign in to comment.