-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Node: Add SobelOperatorNode. (#1056)
* Node: Add SobelOperatorNode. * Update three.js * Add examples * Update patch * Delete examples * Fix import
- Loading branch information
1 parent
5dd05ca
commit 842b6f5
Showing
4 changed files
with
34 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
6 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
17 changes: 17 additions & 0 deletions
17
types/three/examples/jsm/nodes/display/SobelOperatorNode.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,17 @@ | ||
import TextureNode from "../accessors/TextureNode.js"; | ||
import TempNode from "../core/TempNode.js"; | ||
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; | ||
|
||
export default class SobelOperatorNode extends TempNode { | ||
textureNode: TextureNode; | ||
|
||
constructor(textureNode: TextureNode); | ||
} | ||
|
||
export const sobel: (node: NodeRepresentation) => ShaderNodeObject<SobelOperatorNode>; | ||
|
||
declare module "../shadernode/ShaderNode.js" { | ||
interface NodeElements { | ||
sobel: typeof sobel; | ||
} | ||
} |