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 12 methods for working with PhongMaterial objects in .NET programs. Available methods include: A3DObject, FindProperty, GetEnumerator, GetProperty, GetTexture, LambertMaterial, Material, 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

NameTypeAccessDescription
SpecularColorVector3Read/WriteGets or sets the specular color.
SpecularFactordoubleRead/WriteGets or sets the specular factor.
ShininessdoubleRead/WriteGets or sets the shininess.
ReflectionColorVector3Read/WriteGets or sets the reflection color.
ReflectionFactordoubleRead/WriteGets or sets the reflection factor.
EmissiveColorVector3Read/WriteGets or sets the emissive color.
AmbientColorVector3Read/WriteGets or sets the ambient color.
DiffuseColorVector3Read/WriteGets or sets the diffuse color.
TransparentColorVector3Read/WriteGets or sets the transparent color.
TransparencydoubleRead/WriteGets or sets the transparency.
MapSpecularstringReadGets the map specular.
MapDiffusestringReadGets the map diffuse.
MapEmissivestringReadGets the map emissive.
MapAmbientstringReadGets the map ambient.
MapNormalstringReadGets the map normal.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
PhongMaterial()Creates a new material and assigns the given name
PhongMaterial(name: string)Material name
LambertMaterial()
Material()
GetTexture(slotName: string)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()Formats object to string.
GetEnumerator()Gets the enumerator to enumerate internal texture slots.
A3DObject()
RemoveProperty(property: Property)Removes a dynamic property.
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. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

See Also