Skip to content

Commit

Permalink
Add VertexColorNode (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jan 17, 2024
1 parent 1775ee7 commit 34dd2bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/three/examples/jsm/nodes/Nodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export {
cameraPosition,
CameraNodeScope,
} from './accessors/CameraNode.js';
export { default as VertexColorNode, vertexColor } from './accessors/VertexColorNode.js';
export { default as CubeTextureNode, cubeTexture } from './accessors/CubeTextureNode.js';
export { default as InstanceNode, instance } from './accessors/InstanceNode.js';
export {
Expand Down
12 changes: 12 additions & 0 deletions types/three/examples/jsm/nodes/accessors/VertexColorNode.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ShaderNodeObject } from '../shadernode/ShaderNode.js';
import AttributeNode from '../core/AttributeNode.js';

export default class VertexColorNode extends AttributeNode {
readonly isVertexColorNode: true;

index: number;

constructor(index?: number);
}

export const vertexColor: (index?: number) => ShaderNodeObject<VertexColorNode>;

0 comments on commit 34dd2bd

Please sign in to comment.