1234567891011121314151617181920212223 |
- import AttributeNode from '../core/AttributeNode.js';
- class UVNode extends AttributeNode {
- constructor( index = 0 ) {
- super( null, 'vec2' );
- this.index = index;
- Object.defineProperty( this, 'isUVNode', { value: true } );
- }
- getAttributeName( /*builder*/ ) {
- return 'uv' + ( this.index > 0 ? this.index + 1 : '' );
- }
- }
- export default UVNode;
|