@three3d/effect
Version:
@three3d/effect 提供了 ThreeJS 的特效
25 lines (15 loc) • 808 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/effect](./effect.md) > [addUniformPropertiesOnMaterial](./effect.adduniformpropertiesonmaterial.md)
## addUniformPropertiesOnMaterial() function
**Signature:**
```typescript
export declare function addUniformPropertiesOnMaterial<M extends Material, U extends Record<string, any>>(material: M, uniforms: U, shaderUniforms?: Record<string, IUniform<any>>): ModifiedMaterial<M, U>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| material | M | |
| uniforms | U | |
| shaderUniforms | Record<string, IUniform<any>> | _(Optional)_ |
**Returns:**
[ModifiedMaterial](./effect.modifiedmaterial.md)<!-- --><M, U>