-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TSL: Introduce screenUV, screenSize, screenCoordinate and viewport re…
…vision (#1249) * TSL: Introduce screenUV, screenSize, screenCoordinate and viewport revision * Update three.js * Add examples * Update patch and delete examples * Update * Add src * Update patch and delete src
- Loading branch information
1 parent
f62295e
commit 989dc6e
Showing
7 changed files
with
88 additions
and
83 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
38 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,48 @@ | ||
import Node from "../core/Node.js"; | ||
import { ShaderNodeObject } from "../tsl/TSLCore.js"; | ||
|
||
export type ScreenNodeScope = | ||
| typeof ScreenNode.COORDINATE | ||
| typeof ScreenNode.VIEWPORT | ||
| typeof ScreenNode.SIZE | ||
| typeof ScreenNode.UV; | ||
|
||
declare class ScreenNode extends Node { | ||
scope: ScreenNodeScope; | ||
|
||
readonly isViewportNode: true; | ||
|
||
constructor(scope: ScreenNodeScope); | ||
|
||
static COORDINATE: "coordinate"; | ||
static VIEWPORT: "viewport"; | ||
static SIZE: "size"; | ||
static UV: "uv"; | ||
} | ||
|
||
export default ScreenNode; | ||
|
||
// Screen | ||
|
||
export const screenUV: ShaderNodeObject<ScreenNode>; | ||
export const screenSize: ShaderNodeObject<ScreenNode>; | ||
export const screenCoordinate: ShaderNodeObject<ScreenNode>; | ||
|
||
// Viewport | ||
|
||
export const viewport: ShaderNodeObject<ScreenNode>; | ||
export const viewportSize: ShaderNodeObject<Node>; | ||
export const viewportCoordinate: ShaderNodeObject<Node>; | ||
export const viewportUV: ShaderNodeObject<Node>; | ||
|
||
// Deprecated | ||
|
||
/** | ||
* @deprecated "viewportTopLeft" is deprecated. Use "viewportUV" instead. | ||
*/ | ||
export const viewportTopLeft: ShaderNodeObject<ScreenNode>; | ||
|
||
/** | ||
* @deprecated "viewportBottomLeft" is deprecated. Use "viewportUV.flipY()" instead. | ||
*/ | ||
export const viewportBottomLeft: ShaderNodeObject<ScreenNode>; |
This file was deleted.
Oops, something went wrong.