-
-
Notifications
You must be signed in to change notification settings - Fork 189
Closed
Description
I think trigonometric functions(sin, cos, tan) type should be this
interface TriGFunction {
(x: FloatOrNumber): Node<"float">;
(x: Node<"vec2">): Node<"vec2">;
(x: Node<"vec3">): Node<"vec3">;
(x: Node<"vec4">): Node<"vec4">;
}current one is this
export const sin: (x: FloatOrNumber) => Node<"float">;cuz I think it's doing per-component operations for vectors
https://threejsroadmap.com/blog/10-noise-functions-for-threejs-tsl-shaders
in this article, he is using vec2 with sin node.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels