---
title: phong
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scnmaterial/lightingmodel-swift.struct/phong
---

# phong

Shading that incorporates ambient, diffuse, and specular properties, where specular highlights are calculated using the Phong  formula.

## Declaration

```swift
static let phong: SCNMaterial.LightingModel
```

## Discussion

Discussion The Phong approximation of real-world reflectance calculates the color of a point on a surface using the following formula: color = ambient * al + diffuse * max(0, dot(N, L)) + specular * pow(max(0, dot(R, E)), shininess) Some terms refer to the material’s properties: ambient, diffuse, specular, and shininess. The other terms are as follows:

## See Also

### Type Properties

- [blinn](scenekit/scnmaterial/lightingmodel-swift.struct/blinn.md)
- [constant](scenekit/scnmaterial/lightingmodel-swift.struct/constant.md)
- [lambert](scenekit/scnmaterial/lightingmodel-swift.struct/lambert.md)
- [physicallyBased](scenekit/scnmaterial/lightingmodel-swift.struct/physicallybased.md)
- [shadowOnly](scenekit/scnmaterial/lightingmodel-swift.struct/shadowonly.md)
