---
title: "placementPoint"
description: "A position prop in the shape's own coordinates, so you can compare it with the field."
group: "light"
groupTitle: "Noise, light & materials"
categoryId: "materials"
categorySlug: "materials"
categoryTitle: "Materials & surfaces"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/materials.ts#L1247"
---

# placementPoint

A position prop in the shape's own coordinates, so you can compare it with the field.

```ts
placementPoint(params: GpuFragmentParams, position: Expr, hint: string = 'placed'): Expr
```

Import `materials` from `shaders/std` and use `materials.placementPoint`.

Takes a `transformPosition` prop and applies the same center, scale and rotation the shape has. Distances from it are in placement units, not canvas units.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `params` | `GpuFragmentParams` |  |
| `position` | `Expr` |  |
| `hint` | `string` | Optional. Default `'placed'`. |

## Example

```ts
const lightUV = placementPoint(params, params.uniforms.lightPosition)
```

## See also

- [`pointLightFrom`](/docs/primitives/materials/pointlightfrom) — A point light as seen from a point on the shape: the 3D light vector `L`, the 2D direction `toLight` and the `distance`.
- [`nearestEdge`](/docs/primitives/materials/nearestedge) — The closest point on the shape's edge to this pixel, and the outward normal there.

## Used by

[Irradiance](/docs/components/irradiance)