-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add examples * Update patch * Update * Update patch * Update patch * Add CubeRenderTarget * Update patch * Add more * Update patch * Add more * Update patch * Add NodeFunction * Update patch * Delete examples * Update * Use built NodeBuilder * Add examples * Add ContextNode * Update patch * Delete examples * Use built ContextNode * Add examples * Delete examples * Add CubeRenderTarget * Add examples * Update patch * Update patch * Update patch * Add StructTypeNode * Update patch * Delete examples * Add GLSLNodeBuilder * Add BufferAttributeNode * Update patch * Add isInterleavedBuffer * Update patch * Update patch * Update patch * Delete examples * Update * Add examples * Update patch * Delete examples * Update * Add examples * Update patch * Del * Not quite ready yet * Not ready * Add examples * Update patch * Delete examples * Update
- Loading branch information
1 parent
167ca24
commit 4e9491c
Showing
13 changed files
with
1,825 additions
and
102 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
types/three/examples/jsm/nodes/accessors/BufferAttributeNode.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, TypedArray, Usage } from "three"; | ||
import InputNode from "../core/InputNode.js"; | ||
import NodeBuilder from "../core/NodeBuilder.js"; | ||
declare class BufferAttributeNode extends InputNode<TypedArray | InterleavedBuffer | BufferAttribute> { | ||
readonly isBufferNode: true; | ||
bufferType: string | null; | ||
bufferStride: number; | ||
bufferOffset: number; | ||
usage: Usage; | ||
instanced: boolean; | ||
attribute: BufferAttribute | InterleavedBufferAttribute | null; | ||
constructor( | ||
value: TypedArray | InterleavedBuffer | BufferAttribute, | ||
bufferType?: string | null, | ||
bufferStride?: number, | ||
bufferOffset?: number, | ||
); | ||
getNodeType(builder: NodeBuilder): string | null; | ||
setup(builder: NodeBuilder): void; | ||
generate(builder: NodeBuilder): string | null | undefined; | ||
getInputType(): string; | ||
setUsage(value: Usage): this; | ||
setInstanced(value: boolean): this; | ||
} | ||
export default BufferAttributeNode; | ||
export declare const bufferAttribute: ( | ||
array: TypedArray | InterleavedBuffer | BufferAttribute, | ||
type?: string | null, | ||
stride?: number, | ||
offset?: number, | ||
) => import("../shadernode/ShaderNode.js").ShaderNodeObject<BufferAttributeNode>; | ||
export declare const dynamicBufferAttribute: ( | ||
array: TypedArray | InterleavedBuffer | BufferAttribute, | ||
type?: string | null, | ||
stride?: number, | ||
offset?: number, | ||
) => import("../shadernode/ShaderNode.js").ShaderNodeObject<BufferAttributeNode>; | ||
export declare const instancedBufferAttribute: ( | ||
array: TypedArray | InterleavedBuffer | BufferAttribute, | ||
type?: string | null, | ||
stride?: number, | ||
offset?: number, | ||
) => import("../shadernode/ShaderNode.js").ShaderNodeObject<BufferAttributeNode>; | ||
export declare const instancedDynamicBufferAttribute: ( | ||
array: TypedArray | InterleavedBuffer | BufferAttribute, | ||
type?: string | null, | ||
stride?: number, | ||
offset?: number, | ||
) => import("../shadernode/ShaderNode.js").ShaderNodeObject<BufferAttributeNode>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
declare class NodeParser { | ||
parseFunction(): void; | ||
import NodeFunction from "./NodeFunction.js"; | ||
declare abstract class NodeParser { | ||
abstract parseFunction(source: string): NodeFunction; | ||
} | ||
export default NodeParser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Node from "./Node.js"; | ||
declare class StructTypeNode extends Node { | ||
types: string[]; | ||
readonly isStructTypeNode: true; | ||
constructor(types: string[]); | ||
getMemberTypes(): string[]; | ||
} | ||
export default StructTypeNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
types/three/examples/jsm/renderers/common/CubeRenderTarget.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { RenderTargetOptions, Texture, WebGLCubeRenderTarget, WebGLRenderer } from "three"; | ||
declare class CubeRenderTarget extends WebGLCubeRenderTarget { | ||
readonly isCubeRenderTarget: true; | ||
constructor(size?: number, options?: RenderTargetOptions); | ||
fromEquirectangularTexture(renderer: WebGLRenderer, texture: Texture): this; | ||
} | ||
export default CubeRenderTarget; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters