deep-engine-demo/packages/docs/api/materials/Rock1Material.md
2026-04-19 18:46:28 +08:00

58 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
outline: [2, 3]
---
# Rock1Material
- 源文件:`packages/sdk/src/materials/Rock1Material.ts`
- 文档位置:`packages/docs/api/materials/Rock1Material.md`
## 类:`Rock1Material`
- 作用岩石材质类rock1
- 继承/实现:`extends MaterialFactory`
### 方法
#### `create(options: Partial<ConstructorParameters<typeof THREE.MeshStandardMaterial>[0]> = {}, useDisplacement: boolean = true): THREE.MeshStandardMaterial`
- 作用创建岩石材质rock1
- 入参:
| 参数名 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| `options` | `Partial<ConstructorParameters<typeof THREE.MeshStandardMaterial>[0]>` | 否 | - MeshStandardMaterial参数选项可覆盖默认设置 |
| `useDisplacement` | `boolean` | 否 | - 是否使用位移纹理设置默认为true |
- 出参:`THREE.MeshStandardMaterial`
- 返回说明THREE.MeshStandardMaterial - 带有岩石纹理的材质
## 函数:`createRock1Material`
- 作用创建岩石材质rock1的便捷函数
### 签名
```ts
function createRock1Material(options: Partial<ConstructorParameters<typeof THREE.MeshStandardMaterial>[0]> = {}, useDisplacement: boolean = true): THREE.MeshStandardMaterial
```
- 入参:
| 参数名 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| `options` | `Partial<ConstructorParameters<typeof THREE.MeshStandardMaterial>[0]>` | 否 | - MeshStandardMaterial参数选项可覆盖默认设置 |
| `useDisplacement` | `boolean` | 否 | - 是否使用位移纹理设置默认为true |
- 出参:`THREE.MeshStandardMaterial`
- 返回说明THREE.MeshStandardMaterial - 带有岩石纹理的材质
## 构造示例
- 当前 Demo 中没有直接展示 `Rock1Material` 的构造调用。
## 函数示例
- 当前 Demo 中没有直接展示 `Rock1Material` 的公开方法调用。