UNPKG

@three3d/effect

Version:

@three3d/effect 提供了 ThreeJS 的特效

28 lines (16 loc) 864 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@three3d/effect](./effect.md) &gt; [createOnBeforeCompile](./effect.createonbeforecompile.md) ## createOnBeforeCompile() function 创建 onBeforeCompile 函数 **Signature:** ```typescript export declare function createOnBeforeCompile<U extends Record<string, any>>(mender: OnBeforeCompile, uniforms?: U, material?: Material): (shader: import("three").Shader, renderer: import("three").WebGLRenderer) => void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | mender | [OnBeforeCompile](./effect.onbeforecompile.md) | | | uniforms | U | _(Optional)_ | | material | Material | _(Optional)_ | **Returns:** (shader: import("three").Shader, renderer: import("three").WebGLRenderer) =&gt; void