Skip to content

Commit

Permalink
add fn
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Aug 16, 2022
1 parent 05208eb commit 7696f22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/nodes/shadernode/ShaderNodeBaseElements.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ export const uniform = ( nodeOrType ) => {

};

export const fn = ( code, includes ) => func( code, includes ).call;

export const attribute = ( name, nodeType ) => nodeObject( new AttributeNode( name, nodeType ) );
export const property = ( name, nodeOrType ) => nodeObject( new PropertyNode( name, getConstNodeType( nodeOrType ) ) );

Expand Down

0 comments on commit 7696f22

Please sign in to comment.