Skip to content

Commit eefb7fe

Browse files
authored
TSL: all, any, equals (#845)
1 parent feac04f commit eefb7fe

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

types/three/examples/jsm/nodes/Nodes.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export { NodeUtils };
6060
export {
6161
abs,
6262
acos,
63+
all,
64+
any,
6365
asin,
6466
atan,
6567
atan2,
@@ -77,6 +79,7 @@ export {
7779
distance,
7880
dot,
7981
EPSILON,
82+
equals,
8083
exp,
8184
exp2,
8285
faceForward,

types/three/examples/jsm/nodes/math/MathNode.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export type MathNodeMethod = MathNodeMethod1 | MathNodeMethod2 | MathNodeMethod3
5959
export default class MathNode extends TempNode {
6060
// 1 input
6161

62+
static ALL: "all";
63+
static ANY: "any";
64+
static EQUALS: "equals";
65+
6266
static RADIANS: "radians";
6367
static DEGREES: "degrees";
6468
static EXP: "exp";
@@ -129,6 +133,10 @@ export const PI2: ShaderNodeObject<Node>;
129133

130134
type Unary = (a: NodeRepresentation) => ShaderNodeObject<MathNode>;
131135

136+
export const all: Unary;
137+
export const any: Unary;
138+
export const equals: Unary;
139+
132140
export const radians: Unary;
133141
export const degrees: Unary;
134142
export const exp: Unary;
@@ -198,6 +206,9 @@ export const smoothstepElement: Ternary;
198206

199207
declare module "../shadernode/ShaderNode.js" {
200208
interface NodeElements {
209+
all: typeof all;
210+
any: typeof any;
211+
equals: typeof equals;
201212
radians: typeof radians;
202213
degrees: typeof degrees;
203214
exp: typeof exp;

0 commit comments

Comments
 (0)