<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@three3d/volume](./volume.md) &gt; [VolumeMaterial](./volume.volumematerial.md) &gt; [toMapDepth](./volume.volumematerial.tomapdepth.md)

## VolumeMaterial.toMapDepth() method

将材质空间下的深度转为 map 空间下的深度

**Signature:**

```typescript
toMapDepth(axis: Axis, depth: number): number;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  axis | Axis | map坐标系下的坐标轴 |
|  depth | number | 材质空间下的深度 |

**Returns:**

number


