# FilterEffectOptions (/zh-CN/api-reference/rtc/electron/class-filtereffectoptions)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_filtereffectoptions__prototype"></a>

```ts
export class FilterEffectOptions {
  path?: string;
  strength?: number;
}
```

<a id="class_filtereffectoptions__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="path"></a>
<Parameter name="path">

3D 立方体贴图文件的本地绝对路径，该文件用于实现自定义滤镜效果。引用的 .cube 文件必须严格遵循立方体查找表（Cube LUT）规范，否则滤镜效果无法生效。以下为 .cube 文件的示例：

```text
LUT_3D_SIZE 32
0.0039215689 0 0.0039215682
0.0086021447 0.0037950677 0
...
0.0728652592 0.0039215689 0
```

:::note
注：

- 立方体贴图文件首行的 `LUT_3D_SIZE` 标识符表示三维查找表的尺寸，滤镜效果的 LUT 尺寸目前仅支持设为 32。
- SDK 提供了一个内置的 `built_in_whiten_filter.cube` 文件，传入该文件的绝对路径可实现美白滤镜效果。
:::

</Parameter>
<a id="strength"></a>
<Parameter name="strength">

滤镜效果强度，取值范围为 [0.0,1.0]，其中 0.0 表示无滤镜效果，默认值为 0.5。取值越大，滤镜效果越强。

</Parameter>
</ParameterList>
