Instance Method

initWithTexture:normalTexture:size:

Initializes a new tile definition with a single texture and separate normal texture for simulating 3D lighting.

Declaration

- (instancetype)initWithTexture:(SKTexture *)texture normalTexture:(SKTexture *)normalTexture size:(CGSize)size;

Parameters

texture

The texture to reference for the definition's content.

normalTexture

The texture to reference for generating normals to simulate 3D lighting.

size

The size of the tile in points.

Return Value

A new tile definition.

See Also

Creating a Tile with a Normal Texture