From 6fa8d42b9d7763e2429c2c8a784788b771c03fdd Mon Sep 17 00:00:00 2001 From: kvvasuu Date: Sun, 2 Aug 2026 15:42:48 +0200 Subject: [PATCH] fix(LUT,Texture): make ref prop optional Both required ref, unlike every other effect component's props. --- src/effects/LUT.tsx | 2 +- src/effects/Texture.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/LUT.tsx b/src/effects/LUT.tsx index 73abbb48..f1e277c4 100644 --- a/src/effects/LUT.tsx +++ b/src/effects/LUT.tsx @@ -8,7 +8,7 @@ export type LUTProps = { lut: Texture blendFunction?: BlendFunction tetrahedralInterpolation?: boolean - ref: Ref + ref?: Ref } export function LUT({ lut, tetrahedralInterpolation, ref, ...props }: LUTProps) { diff --git a/src/effects/Texture.tsx b/src/effects/Texture.tsx index 68057a51..6610b789 100644 --- a/src/effects/Texture.tsx +++ b/src/effects/Texture.tsx @@ -8,7 +8,7 @@ type TextureProps = ConstructorParameters[0] & { textureSrc: string /** opacity of provided texture */ opacity?: number - ref: Ref + ref?: Ref } export function Texture({ textureSrc, texture, opacity = 1, ref, ...props }: TextureProps) {