Skip to content

Commit

Permalink
Inject material name into shader
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Aug 27, 2024
1 parent 305ad18 commit 31beff7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,10 @@ ${vars}

return `#version 300 es
${ this.getSignature() }
// ${ this.material.name }
// extensions
${shaderData.extensions}
Expand Down Expand Up @@ -815,6 +819,8 @@ void main() {
${ this.getSignature() }
// ${ this.material.name }
// precision
${ defaultPrecisions }
Expand Down

0 comments on commit 31beff7

Please sign in to comment.