Skip to content

Commit 31beff7

Browse files
committed
Inject material name into shader
1 parent 305ad18 commit 31beff7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ ${vars}
773773

774774
return `#version 300 es
775775
776+
${ this.getSignature() }
777+
778+
// ${ this.material.name }
779+
776780
// extensions
777781
${shaderData.extensions}
778782
@@ -815,6 +819,8 @@ void main() {
815819
816820
${ this.getSignature() }
817821
822+
// ${ this.material.name }
823+
818824
// precision
819825
${ defaultPrecisions }
820826

0 commit comments

Comments
 (0)