Skip to content

Commit 40a3ce6

Browse files
authored
Merge pull request #362 from pmndrs/fix/lut-texture-optional-ref
fix(LUT,Texture): make ref prop optional
2 parents d0faf6b + 6fa8d42 commit 40a3ce6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/effects/LUT.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type LUTProps = {
88
lut: Texture
99
blendFunction?: BlendFunction
1010
tetrahedralInterpolation?: boolean
11-
ref: Ref<LUT3DEffect>
11+
ref?: Ref<LUT3DEffect>
1212
}
1313

1414
export function LUT({ lut, tetrahedralInterpolation, ref, ...props }: LUTProps) {

src/effects/Texture.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type TextureProps = ConstructorParameters<typeof TextureEffect>[0] & {
88
textureSrc: string
99
/** opacity of provided texture */
1010
opacity?: number
11-
ref: Ref<TextureEffect>
11+
ref?: Ref<TextureEffect>
1212
}
1313

1414
export function Texture({ textureSrc, texture, opacity = 1, ref, ...props }: TextureProps) {

0 commit comments

Comments
 (0)