Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSL: Update MaterialX library #1047

Merged
merged 1 commit into from
Jun 21, 2024
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
1 change: 1 addition & 0 deletions types/three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import Node from "../../core/Node.js";
import { NodeRepresentation, ShaderNodeObject } from "../../shadernode/ShaderNode.js";

export const mx_hsvtorgb: (hsv_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_rgbtohsv: (c_immutable: NodeRepresentation) => ShaderNodeObject<Node>;
230 changes: 230 additions & 0 deletions types/three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,34 @@ export const mx_select: (
t_immutable: NodeRepresentation,
f_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_negate_if: (
val_immutable: NodeRepresentation,
b_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_floor: (x_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_floorfrac: (x_immutable: NodeRepresentation, i: ShaderNodeObject<VarNode>) => ShaderNodeObject<Node>;

export const mx_bilerp_0: (
v0_immutable: NodeRepresentation,
v1_immutable: NodeRepresentation,
v2_immutable: NodeRepresentation,
v3_immutable: NodeRepresentation,
s_immutable: NodeRepresentation,
t_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_bilerp_1: (
v0_immutable: NodeRepresentation,
v1_immutable: NodeRepresentation,
v2_immutable: NodeRepresentation,
v3_immutable: NodeRepresentation,
s_immutable: NodeRepresentation,
t_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_bilerp: (
v0_immutable: NodeRepresentation,
v1_immutable: NodeRepresentation,
Expand All @@ -21,6 +43,35 @@ export const mx_bilerp: (
s_immutable: NodeRepresentation,
t_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_trilerp_0: (
v0_immutable: NodeRepresentation,
v1_immutable: NodeRepresentation,
v2_immutable: NodeRepresentation,
v3_immutable: NodeRepresentation,
v4_immutable: NodeRepresentation,
v5_immutable: NodeRepresentation,
v6_immutable: NodeRepresentation,
v7_immutable: NodeRepresentation,
s_immutable: NodeRepresentation,
t_immutable: NodeRepresentation,
r_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_trilerp_1: (
v0_immutable: NodeRepresentation,
v1_immutable: NodeRepresentation,
v2_immutable: NodeRepresentation,
v3_immutable: NodeRepresentation,
v4_immutable: NodeRepresentation,
v5_immutable: NodeRepresentation,
v6_immutable: NodeRepresentation,
v7_immutable: NodeRepresentation,
s_immutable: NodeRepresentation,
t_immutable: NodeRepresentation,
r_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_trilerp: (
v0_immutable: NodeRepresentation,
v1_immutable: NodeRepresentation,
Expand All @@ -34,73 +85,213 @@ export const mx_trilerp: (
t_immutable: NodeRepresentation,
r_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_float_0: (
hash_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_float_1: (
hash_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_float: (
hash_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable?: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_vec3_0: (
hash_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_vec3_1: (
hash_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_vec3: (
hash_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable?: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_gradient_scale2d_0: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_gradient_scale3d_0: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_gradient_scale2d_1: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_gradient_scale2d: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_gradient_scale3d_1: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_gradient_scale3d: (v_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_rotl32: (x_immutable: NodeRepresentation, k_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_bjmix: (
a: ShaderNodeObject<VarNode>,
b: ShaderNodeObject<VarNode>,
c: ShaderNodeObject<VarNode>,
) => ShaderNodeObject<Node>;

export const mx_bjfinal: (
a_immutable: NodeRepresentation,
b_immutable: NodeRepresentation,
c_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_bits_to_01: (bits_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_fade: (t_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_hash_int_0: (x_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_hash_int_1: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_int_2: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_int_3: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
xx_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_int_4: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
xx_immutable: NodeRepresentation,
yy_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_int: (
x_immutable: NodeRepresentation,
y_immutable?: NodeRepresentation,
z_immutable?: NodeRepresentation,
xx_immutable?: NodeRepresentation,
yy_immutable?: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_vec3_0: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_vec3_1: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_hash_vec3: (
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable?: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_perlin_noise_float_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_perlin_noise_float_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_perlin_noise_float: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_perlin_noise_vec3_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_perlin_noise_vec3_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_perlin_noise_vec3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_float_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_float_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_float_2: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_float_3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_float: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_vec3_0: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_vec3_1: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_vec3_2: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_vec3_3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_cell_noise_vec3: (p_immutable: NodeRepresentation) => ShaderNodeObject<Node>;

export const mx_fractal_noise_float: (
p_immutable: NodeRepresentation,
octaves_immutable: NodeRepresentation,
lacunarity_immutable: NodeRepresentation,
diminish_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_fractal_noise_vec3: (
p_immutable: NodeRepresentation,
octaves_immutable: NodeRepresentation,
lacunarity_immutable: NodeRepresentation,
diminish_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_fractal_noise_vec2: (
p_immutable: NodeRepresentation,
octaves_immutable: NodeRepresentation,
lacunarity_immutable: NodeRepresentation,
diminish_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_fractal_noise_vec4: (
p_immutable: NodeRepresentation,
octaves_immutable: NodeRepresentation,
lacunarity_immutable: NodeRepresentation,
diminish_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_distance_0: (
p_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
xoff_immutable: NodeRepresentation,
yoff_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_distance_1: (
p_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
y_immutable: NodeRepresentation,
z_immutable: NodeRepresentation,
xoff_immutable: NodeRepresentation,
yoff_immutable: NodeRepresentation,
zoff_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_distance: (
p_immutable: NodeRepresentation,
x_immutable: NodeRepresentation,
Expand All @@ -110,18 +301,57 @@ export const mx_worley_distance: (
yoff_immutable: NodeRepresentation,
zoff_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable?: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_float_0: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_vec2_0: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_vec3_0: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_float_1: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_float: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_vec2_1: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_vec2: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_vec3_1: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
metric_immutable: NodeRepresentation,
) => ShaderNodeObject<Node>;

export const mx_worley_noise_vec3: (
p_immutable: NodeRepresentation,
jitter_immutable: NodeRepresentation,
Expand Down
Loading