forked from mrdoob/three.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
aardgoose
committed
Jun 5, 2024
1 parent
c870fa1
commit 7d01e14
Showing
6 changed files
with
137 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Node, { addNodeClass } from '../core/Node.js'; | ||
import { nodeProxy } from '../shadernode/ShaderNode.js'; | ||
|
||
class BuiltinNode extends Node { | ||
|
||
constructor( name ) { | ||
|
||
super( 'float' ); | ||
|
||
this.name = name; | ||
|
||
this.isBuiltNode = true; | ||
|
||
} | ||
|
||
generate( /* builder */ ) { | ||
|
||
return this.name; | ||
|
||
} | ||
|
||
} | ||
|
||
export default BuiltinNode; | ||
|
||
export const builtin = nodeProxy( BuiltinNode ); | ||
|
||
addNodeClass( 'BuiltinhNode', BuiltinNode ); |
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
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