# SamplerLike

interface in `@dioramajs/diorama/glsl`

```ts
import type { SamplerLike } from '@dioramajs/diorama/glsl'
```

A texture uniform that can be sampled at any UV.

```ts
interface SamplerLike
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `sample` | `sample(uv: Node<'vec2'>): Node<'vec4'>` | Samples the texture at `uv`. |

Also exported from `@dioramajs/glsl`.

Defined in [packages/glsl/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/glsl/src/types.ts#L94).
