---
title: "texture_3d: type in the TypeShade language reference"
description: "texture_3d, a type in the TypeShade language reference. A sampled 3D texture, looked up by a vec3 coordinate, as a volume is."
url: https://typeshade.dev/reference/types/texture_3d/
language: en
---

# `texture_3d`

Type

A sampled 3D texture, looked up by a `vec3` coordinate, as a volume is.

The signature, the sentence and any message are the compiler's own text at commit af54ddad5.

## Syntax

```ts
type texture_3d<E extends TextureElem = f32> = { readonly [textureTag]: readonly [E, '3d'] }
```

A signature may name a type the ambient file declares for its own use. These are those declarations.

**`TextureElem`**

`type TextureElem = f32 | i32 | u32`

## Parameters

- `E` optional `TextureElem`

## Description

Declared as `declare const t: texture_3d<f32>`.

## Examples

- [`gallery/cube-env/cube-env.shade.ts`](https://typeshade.dev/guide/examples/cube-env/)

## See also

- [Types](https://typeshade.dev/reference/types/)
