<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKSpriteNode/init(imageNamed:normalMapped:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKSpriteNode(cm)spriteNodeWithImageNamed:normalMapped:"
  },
  "title" : "init(imageNamed:normalMapped:)"
}
-->

# init(imageNamed:normalMapped:)

Initializes a textured sprite using an image file, optionally adding a normal map to simulate 3D lighting.

```
convenience init(imageNamed name: String, normalMapped generateNormalMap: Bool)
```

## Parameters

`name`

The name of an image file stored in the app bundle.

`generateNormalMap`

If <doc://com.apple.documentation/documentation/Swift/true>, a normal map is generated from the image texture without applying any filter to it (SKTextureNormalMapFilteringTypeNone). If <doc://com.apple.documentation/documentation/Swift/false>, no normal map is generated (matching the behavior of the [`spriteNodeWithImageNamed:`](/documentation/SpriteKit/SKSpriteNode/spriteNodeWithImageNamed:) class method).

## Return Value

A newly initialized sprite object.

## Discussion

The normal map is used only when lighting is enabled in the scene. For more information, see [`SKSpriteNode`](/documentation/SpriteKit/SKSpriteNode) and [`SKLightNode`](/documentation/SpriteKit/SKLightNode).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)