Browse Source

Add buffer() function (#23656)

LeviPesin 3 years ago
parent
commit
ac69703e27
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/jsm/nodes/ShaderNode.js

+ 2 - 0
examples/jsm/nodes/ShaderNode.js

@@ -5,6 +5,7 @@ import AttributeNode from './core/AttributeNode.js';
 
 // input nodes
 import BoolNode from './inputs/BoolNode.js';
+import BufferNode from './inputs/BufferNode.js';
 import ColorNode from './inputs/ColorNode.js';
 import FloatNode from './inputs/FloatNode.js';
 import IntNode from './inputs/IntNode.js';
@@ -285,6 +286,7 @@ export const addTo = ( varNode, ...params ) => {
 export const uv = new ShaderNodeProxy( UVNode );
 export const attribute = new ShaderNodeProxy( AttributeNode );
 
+export const buffer = new ShaderNodeProxy( BufferNode );
 export const texture = new ShaderNodeProxy( TextureNode );
 
 export const add = new ShaderNodeProxy( OperatorNode, '+' );