Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Oct 19, 2023
1 parent bf7ebb0 commit 4b835b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions examples/jsm/renderers/webgl/nodes/GLSLNodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,15 @@ ${ flowData.code }

const vars = this.vars[ shaderStage ];

for ( const variable of vars ) {
if ( vars !== undefined ) {

if ( variable.isOutputStructVar ) continue;
for ( const variable of vars ) {

snippets.push( `${ this.getVar( variable.type, variable.name ) };` );
if ( variable.isOutputStructVar ) continue;

snippets.push( `${ this.getVar( variable.type, variable.name ) };` );

}

}

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_shadertoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>

<div id="info">
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - ShaderToy Transpiler
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - ShaderToy
<br />Shader created by <a href="https://www.shadertoy.com/view/Mt2SzR" target="_blank" rel="noopener">jackdavenport</a>.
</div>

Expand Down

0 comments on commit 4b835b1

Please sign in to comment.