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

# PhongMaterial

## Overview

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

Material for blinn-phong shading model.

This class provides 35 methods for working with PhongMaterial objects in Java programs.
Available methods include: `A3DObject`, `LambertMaterial`, `PhongMaterial`, `findProperty`, `getAmbientColor`, `getDiffuseColor`, `getEmissiveColor`, `getName`, `getProperties`, `getProperty`, `getReflectionColor`, `getReflectionFactor`, and 22 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `MAP_AMBIENT`, `MAP_DIFFUSE`, `MAP_EMISSIVE`, `MAP_NORMAL`, `MAP_SPECULAR`, `ambientColor`, and 11 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `specularColor` | `Vector3` | Read | Gets or sets the specular color. |
| `specularFactor` | `double` | Read | Gets or sets the specular factor. |
| `shininess` | `double` | Read | Gets or sets the shininess, this controls the specular highlight's size. |
| `reflectionColor` | `Vector3` | Read | Gets or sets the reflection color. |
| `reflectionFactor` | `double` | Read | Gets or sets the attenuation of the reflection color. |
| `emissiveColor` | `Vector3` | Read | Gets or sets the emissive color. |
| `ambientColor` | `Vector3` | Read | Gets or sets the ambient color. |
| `diffuseColor` | `Vector3` | Read | Gets or sets the diffuse color. |
| `transparentColor` | `Vector3` | Read | Gets or sets the transparent color. |
| `transparency` | `double` | Read | Gets or sets the transparency factor. |
| `MAP_SPECULAR` | `String` | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping. |
| `MAP_DIFFUSE` | `String` | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping. |
| `MAP_EMISSIVE` | `String` | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping. |
| `MAP_AMBIENT` | `String` | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping. |
| `MAP_NORMAL` | `String` | Read | Used in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping. |
| `name` | `String` | Read | Gets the name. |
| `properties` | `PropertyCollection` | Read | Gets the properties. |

## Methods

| Signature | Description |
|-----------|-------------|
| `PhongMaterial()` | Initializes a new instance of the PhongMaterial class. |
| `PhongMaterial(name: String)` | Initializes a new instance of the PhongMaterial class. |
| `getSpecularColor()` → `Vector3` | Gets or sets the specular color. |
| `setSpecularColor(specularColor: Vector3)` | Sets the specular color value. |
| `getSpecularFactor()` → `double` | Gets or sets the specular factor. |
| `setSpecularFactor(specularFactor: double)` | Sets the specular factor value. |
| `getShininess()` → `double` | Gets or sets the shininess, this controls the specular highlight's size. |
| `setShininess(shininess: double)` | Sets the shininess value. |
| `getReflectionColor()` → `Vector3` | Gets or sets the reflection color. |
| `setReflectionColor(reflectionColor: Vector3)` | Sets the reflection color value. |
| `getReflectionFactor()` → `double` | Gets or sets the attenuation of the reflection color. |
| `setReflectionFactor(reflectionFactor: double)` | Sets the reflection factor value. |
| `LambertMaterial()` | Initializes a new instance of the LambertMaterial class. |
| `getEmissiveColor()` → `Vector3` | Gets or sets the emissive color. |
| `setEmissiveColor(emissiveColor: Vector3)` | Sets the emissive color value. |
| `getAmbientColor()` → `Vector3` | Gets or sets the ambient color. |
| `setAmbientColor(ambientColor: Vector3)` | Sets the ambient color value. |
| `getDiffuseColor()` → `Vector3` | Gets or sets the diffuse color. |
| `setDiffuseColor(diffuseColor: Vector3)` | Gets or sets the shininess, this controls the specular highlight's size. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess |
| `getTransparentColor()` → `Vector3` | Gets or sets the transparent color. |
| `setTransparentColor(transparentColor: Vector3)` | Sets the transparent color value. |
| `getTransparency()` → `double` | Gets or sets the transparency factor. |
| `setTransparency(transparency: double)` | Sets the transparency value. |
| `getTexture(slotName: String)` → `TextureBase` | Gets the texture from the specified slot, it can be material's property name or shader's parameter name. |
| `setTexture(slotName: String, texture: TextureBase)` | Sets the texture to specified slot. |
| `toString()` → `String` | Formats object to string. |
| `iterator()` → `Iterator` | Gets the enumerator to enumerate internal texture slots. |
| `A3DObject()` | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
| `getName()` → `String` | The segments of the curve. |
| `setName(name: String)` | Constructs a CircleShape profile with specified radius. |
| `getProperties()` → `PropertyCollection` | Initializes a new instance of Cylinder class. |
| `findProperty(name: String)` → `Property` | Initializes a new instance of the Bone class. |
| `getProperty(name: String)` → `Object` | Gets the transform matrix of the node in current pose. |
| `setProperty(name: String, value: Object)` | Gets the width segments. |
| `removeProperty(name: String)` → `boolean` | Gets flip coordinate system of control points/normal during importing/exporting. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)