---
title: fillTexture
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/filltexture
---

# fillTexture

The texture used to fill the shape.

## Declaration

```swift
var fillTexture: SKTexture? { get set }
```

## Mentioned in

Controlling Shape Drawing with Shaders

## Discussion

Discussion The default value is nil. If a fill texture is specified, the shape node is rendered using that texture blended with the fillColor. important: The default fill color of a SKShapeNode is SKColor.clear. Since the fill texture is blended with the fill color, fillColor needs to be set to a non-clear color for it to display. For example, to display the texture without any color blend effects, set fillColor to SKColor.white.

## See Also

### Filling a Shape

- [fillColor](spritekit/skshapenode/fillcolor.md)
