-
-
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.
WebGPURenderer: PostProcessing - Anamorphic example (#789)
* WebGPURenderer: PostProcessing - Anamorphic example * Update three.js * Add examples * Delete examples
- Loading branch information
1 parent
17cee27
commit fdb9373
Showing
8 changed files
with
44 additions
and
1 deletion.
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
Submodule three.js
updated
19 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
32 changes: 32 additions & 0 deletions
32
types/three/examples/jsm/nodes/display/AnamorphicNode.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,32 @@ | ||
import { Vector2 } from '../../../../src/Three.js'; | ||
import Node from '../core/Node.js'; | ||
import TempNode from '../core/TempNode.js'; | ||
import TextureNode from '../accessors/TextureNode.js'; | ||
import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; | ||
|
||
export default class AnamorphicNode extends TempNode { | ||
textureNode: TextureNode; | ||
thresholdNode: Node; | ||
scaleNode: Node; | ||
samples: number; | ||
resolution: Vector2; | ||
|
||
constructor(textureNode: TextureNode, thresholdNode: Node, scaleNode: Node, samples: number); | ||
|
||
getTextureNode(): TextureNode; | ||
|
||
setSize(width: number, height: number): void; | ||
} | ||
|
||
export const anamorphic: ( | ||
node: TextureNode, | ||
threshold?: NodeRepresentation, | ||
scale?: NodeRepresentation, | ||
samples?: NodeRepresentation, | ||
) => ShaderNodeObject<AnamorphicNode>; | ||
|
||
declare module '../shadernode/ShaderNode.js' { | ||
interface NodeElements { | ||
anamorphic: typeof anamorphic; | ||
} | ||
} |
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