# 3d-tiles-renderer/three: Functions

## Functions

### decodeOctNormal

```js
decodeOctNormal( x: number, y: number, target?: Vector3 )
```

Decode an octahedron-encoded normal (as a pair of 8-bit unsigned numbers) into a Vector3.

Resources:
- https://stackoverflow.com/a/74745666/2704779
- https://knarkowicz.wordpress.com/2014/04/16/octahedron-normal-vector-encoding/

- `x`, `number`: The unsigned 8-bit X coordinate on the projected octahedron.
- `y`, `number`: The unsigned 8-bit Y coordinate on the projected octahedron.
- `target`, `Vector3`, optional: The target vector.
