We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
debug()
1 parent f25d5a2 commit d3ca4beCopy full SHA for d3ca4be
src/nodes/utils/DebugNode.js
@@ -41,11 +41,14 @@ class DebugNode extends TempNode {
41
const callback = this.callback;
42
const snippet = this.node.build( builder );
43
44
+ const title = '--- TSL debug - ' + builder.shaderStage + ' shader ---';
45
+ const border = '-'.repeat( title.length );
46
+
47
let code = '';
- code += '// #--- TSL Debug ---#\n';
48
+ code += '// #' + title + '#\n';
49
code += builder.flow.code.replace( /^\t/mg, '' ) + '\n';
50
code += '/* ... */ ' + snippet + ' /* ... */\n';
- code += '// #-----------------#\n';
51
+ code += '// #' + border + '#\n';
52
53
if ( callback !== null ) {
54
0 commit comments