-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSL: Introduce node.toTexture() and rtt() (#1087)
* TSL: Introduce node.toTexture() and rtt() * Update three.js * Update three.js * Add examples * Update * Update patch and delete examples * Add src * Update patch and delete src
- Loading branch information
1 parent
44d8bb1
commit a6c66cd
Showing
7 changed files
with
76 additions
and
15 deletions.
There are no files selected for viewing
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
Submodule three.js
updated
13 files
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { TextureDataType } from "../../constants.js"; | ||
import { RenderTarget } from "../../core/RenderTarget.js"; | ||
import TextureNode from "../accessors/TextureNode.js"; | ||
import Node from "../core/Node.js"; | ||
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; | ||
|
||
export interface RTTNodeOptions { | ||
type: TextureDataType; | ||
} | ||
|
||
declare class RTTNode extends TextureNode { | ||
node: Node; | ||
width: number | null; | ||
height: number | null; | ||
|
||
renderTarget: RenderTarget | null; | ||
|
||
textureNeedsUpdate: boolean; | ||
autoUpdate: boolean; | ||
|
||
constructor(node: Node, width?: number | null, height?: number | null, options?: RTTNodeOptions); | ||
|
||
get autoSize(): boolean; | ||
|
||
setSize(width: number | null, height: number | null): void; | ||
} | ||
|
||
export default RTTNode; | ||
|
||
export const rtt: ( | ||
node: NodeRepresentation, | ||
width?: number | null, | ||
height?: number | null, | ||
options?: RTTNodeOptions, | ||
) => ShaderNodeObject<RTTNode>; | ||
|
||
declare module "../shadernode/ShaderNode.js" { | ||
interface NodeElements { | ||
toTexture: typeof rtt; | ||
} | ||
} |
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,4 @@ | ||
cd ../three.js | ||
cd three.js | ||
git fetch | ||
git checkout $1 | ||
cd .. | ||
|