---
title: "ctx.pointer"
description: "The mouse position in uv (0–1, y down)."
group: "define"
groupTitle: "Defining a shader"
categoryId: "invoke"
categorySlug: "invoke"
categoryTitle: "Context & invocation"
kind: "constant"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/invoke.ts#L58"
---

# ctx.pointer

The mouse position in uv (0–1, y down).

```ts
ctx.pointer: CtxToken
```

Import `ctx` from `shaders/std` and use `ctx.pointer`.