Skip to content

Commit 0e3c323

Browse files
authored
TSL: add transpose() function (#1020)
1 parent e410e1d commit 0e3c323

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export {
127127
step,
128128
tan,
129129
transformDirection,
130+
transpose,
130131
trunc,
131132
} from "./math/MathNode.js";
132133

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export type MathNodeMethod1 =
3232
| typeof MathNode.RECIPROCAL
3333
| typeof MathNode.TRUNC
3434
| typeof MathNode.FWIDTH
35-
| typeof MathNode.BITCAST;
35+
| typeof MathNode.BITCAST
36+
| typeof MathNode.TRANSPOSE;
3637

3738
export type MathNodeMethod2 =
3839
| typeof MathNode.ATAN2
@@ -93,6 +94,7 @@ export default class MathNode extends TempNode {
9394
static TRUNC: "trunc";
9495
static FWIDTH: "fwidth";
9596
static BITCAST: "bitcast";
97+
static TRANSPOSE: "transpose";
9698

9799
// 2 inputs
98100

@@ -167,6 +169,7 @@ export const reciprocal: Unary;
167169
export const trunc: Unary;
168170
export const fwidth: Unary;
169171
export const bitcast: Unary;
172+
export const transpose: Unary;
170173

171174
type Binary = (a: NodeRepresentation, b: NodeRepresentation) => ShaderNodeObject<MathNode>;
172175

@@ -261,5 +264,6 @@ declare module "../shadernode/ShaderNode.js" {
261264
difference: typeof difference;
262265
saturate: typeof saturate;
263266
cbrt: typeof cbrt;
267+
transpose: typeof transpose;
264268
}
265269
}

0 commit comments

Comments
 (0)