Initial commit

This commit is contained in:
ChKendel
2026-01-31 21:50:25 +01:00
commit c65f983229
1088 changed files with 452910 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import UniformNode from '../core/UniformNode.js';
import { addNodeClass } from '../core/Node.js';
import { nodeObject } from '../shadernode/ShaderNode.js';
class BufferNode extends UniformNode {
constructor( value, bufferType, bufferCount = 0 ) {
super( value, bufferType );
this.isBufferNode = true;
this.bufferType = bufferType;
this.bufferCount = bufferCount;
}
getInputType( /*builder*/ ) {
return 'buffer';
}
}
export default BufferNode;
export const buffer = ( value, type, count ) => nodeObject( new BufferNode( value, type, count ) );
addNodeClass( 'BufferNode', BufferNode );