-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added types for UniformGroupNode and UniformGroup, and created type d… (
#940) * Added types for UniformGroupNode and UniformGroup, and created type definitions for UniformGroupNode values within the UniformNode class * fix formatting * Updates --------- Co-authored-by: Nathan Bierema <nbierema@gmail.com>
- Loading branch information
1 parent
bbe75e5
commit 1cc6ee8
Showing
3 changed files
with
35 additions
and
0 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,7 @@ | ||
export default class UniformGroup { | ||
name: string; | ||
|
||
readonly isUniformGroup: true; | ||
|
||
constructor(name: string); | ||
} |
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,21 @@ | ||
import Node from "./Node.js"; | ||
|
||
export default class UniformGroupNode extends Node { | ||
name: string; | ||
version: number; | ||
|
||
shared: boolean; | ||
|
||
readonly isUniformGroup: true; | ||
|
||
constructor(name: string, shared?: boolean); | ||
|
||
set needsUpdate(value: boolean); | ||
} | ||
|
||
export const uniformGroup: (name: string) => UniformGroupNode; | ||
export const sharedUniformGroup: (name: string) => UniformGroupNode; | ||
|
||
export const frameGroup: UniformGroupNode; | ||
export const renderGroup: UniformGroupNode; | ||
export const objectGroup: UniformGroupNode; |
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