Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions types/three/src/Three.TSL.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export const faceDirection: typeof TSL.faceDirection;
export const faceForward: typeof TSL.faceForward;
export const faceforward: typeof TSL.faceforward;
export const float: typeof TSL.float;
export const floatBitsToInt: typeof TSL.floatBitsToInt;
export const floatBitsToUint: typeof TSL.floatBitsToUint;
export const floor: typeof TSL.floor;
export const fog: typeof TSL.fog;
export const fract: typeof TSL.fract;
Expand Down Expand Up @@ -221,6 +223,7 @@ export const instancedBufferAttribute: typeof TSL.instancedBufferAttribute;
export const instancedDynamicBufferAttribute: typeof TSL.instancedDynamicBufferAttribute;
export const instancedMesh: typeof TSL.instancedMesh;
export const int: typeof TSL.int;
export const intBitsToFloat: typeof TSL.intBitsToFloat;
export const inverse: typeof TSL.inverse;
export const inverseSqrt: typeof TSL.inverseSqrt;
export const inversesqrt: typeof TSL.inversesqrt;
Expand Down Expand Up @@ -562,6 +565,7 @@ export const triplanarTexture: typeof TSL.triplanarTexture;
export const triplanarTextures: typeof TSL.triplanarTextures;
export const trunc: typeof TSL.trunc;
export const uint: typeof TSL.uint;
export const uintBitsToFloat: typeof TSL.uintBitsToFloat;
export const uniform: typeof TSL.uniform;
export const uniformArray: typeof TSL.uniformArray;
export const uniformCubeTexture: typeof TSL.uniformCubeTexture;
Expand Down
11 changes: 10 additions & 1 deletion types/three/src/nodes/math/BitcastNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ import { ShaderNodeObject } from "../tsl/TSLCore.js";
declare class BitcastNode extends TempNode {
valueNode: Node;
conversionType: string;
inputType: string | null;

readonly isBitcastNode: true;

constructor(valueNode: Node, conversionType: string);
constructor(valueNode: Node, conversionType: string, inputType: string | null);
}

export default BitcastNode;

export const bitcast: (x: Node | number, y: string) => ShaderNodeObject<BitcastNode>;

export const floatBitsToInt: (value: Node) => ShaderNodeObject<BitcastNode>;

export const floatBitsToUint: (value: Node) => ShaderNodeObject<BitcastNode>;

export const intBitsToFloat: (value: Node) => ShaderNodeObject<BitcastNode>;

export const uintBitsToFloat: (value: Node) => ShaderNodeObject<BitcastNode>;
Loading