---
Product: Aspose.3D
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/net/phongmaterial
---

# PhongMaterial

## Overview

`PhongMaterial` is a class in Aspose.3D FOSS for .NET.
Inherits from: `LambertMaterial`.

Material for blinn-phong shading model.

This class provides 15 methods for working with PhongMaterial objects in .NET programs.
Available methods include: `A3DObject`, `FindProperty`, `GetEnumerator`, `GetProperty`, `GetTexture`, `LambertMaterial`, `PhongMaterial`, `RemoveProperty`, `SetProperty`, `SetTexture`, `ToString`.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: `AmbientColor`, `DiffuseColor`, `EmissiveColor`, `MapAmbient`, `MapDiffuse`, `MapEmissive`, and 11 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `SpecularColor` | `Vector3` | Read/Write | Gets or sets the specular color. |
| `SpecularFactor` | `double` | Read/Write | Gets or sets the specular factor. |
| `Shininess` | `double` | Read/Write | Gets or sets the shininess, this controls the specular highlight's size. |
| `ReflectionColor` | `Vector3` | Read/Write | Gets or sets the reflection color. |
| `ReflectionFactor` | `double` | Read/Write | Gets or sets the attenuation of the reflection color. |
| `EmissiveColor` | `Vector3` | Read/Write | Gets or sets the emissive color |
| `AmbientColor` | `Vector3` | Read/Write | Gets or sets the ambient color |
| `DiffuseColor` | `Vector3` | Read/Write | Gets or sets the diffuse color |
| `TransparentColor` | `Vector3` | Read/Write | Gets or sets the transparent color. |
| `Transparency` | `double` | Read/Write | Gets or sets the transparency factor. |
| `MapSpecular` | `string` | Read | Used in GetTexture/SetTexture to assign a specular texture mapping. |
| `MapDiffuse` | `string` | Read | Used in GetTexture/SetTexture to assign a diffuse texture mapping. |
| `MapEmissive` | `string` | Read | Used in GetTexture/SetTexture to assign a emissive texture mapping. |
| `MapAmbient` | `string` | Read | Used in GetTexture/SetTexture to assign a ambient texture mapping. |
| `MapNormal` | `string` | Read | Used in GetTexture/SetTexture to assign a normal texture mapping. |
| `Name` | `string` | Read/Write | Gets or sets the name. |
| `Properties` | `PropertyCollection` | Read | Gets the collection of all properties. |

## Methods

| Signature | Description |
|-----------|-------------|
| `PhongMaterial()` | Initializes a new instance of the PhongMaterial class |
| `PhongMaterial(name: string)` | Initializes a new instance of the PhongMaterial class  Material name |
| `LambertMaterial()` | Initializes a new instance of the LambertMaterial class |
| `LambertMaterial(name: string)` | Initializes a new instance of the LambertMaterial class  Material name |
| `GetTexture(slotName: string)` | /// |
| `SetTexture(slotName: string, texture: TextureBase)` | Sets the texture to specified slot. |
| `ToString()` | Formats object to string. |
| `GetEnumerator()` | Gets the enumerator to enumerate internal texture slots. |
| `A3DObject()` | Initializes a new instance of the A3DObject class with no name. |
| `A3DObject(name: string)` | Initializes a new instance of the A3DObject class. |
| `RemoveProperty(property: Property)` | Removes a dynamic property. |
| `RemoveProperty(property: string)` | Remove the specified property identified by name |
| `GetProperty(property: string)` | Get the value of specified property |
| `SetProperty(property: string, value: object?)` | Sets the value of specified property |
| `FindProperty(propertyName: string)` | Finds the property. |

## See Also
- [Aspose.3D for .NET — Enterprise API Reference](https://reference.aspose.com/3d/net/aspose.threed.shading/phongmaterial/)