---
title: "init(byGeneratingNormalMapWithTexture:name:smoothness:contrast:)"
framework: modelio
role: symbol
role_heading: Initializer
path: "modelio/mdlnormalmaptexture/init(bygeneratingnormalmapwithtexture:name:smoothness:contrast:)"
---

# init(byGeneratingNormalMapWithTexture:name:smoothness:contrast:)

## Declaration

```swift
init(byGeneratingNormalMapWithTexture sourceTexture: MDLTexture, name: String?, smoothness: Float, contrast: Float)
```
