ShaderMaterial

ShaderMaterial

Overview

ShaderMaterial is a class in Aspose.3D FOSS for .NET. Inherits from: Material.

A shader material allows to describe the material by external rendering engine or shader language.

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

Properties

NameTypeAccessDescription
TechniquesIList<ShaderTechnique>ReadGets all available techniques defined in this material.
MapSpecularstringReadUsed in GetTexture/SetTexture to assign a specular texture mapping.
MapDiffusestringReadUsed in GetTexture/SetTexture to assign a diffuse texture mapping.
MapEmissivestringReadUsed in GetTexture/SetTexture to assign a emissive texture mapping.
MapAmbientstringReadUsed in GetTexture/SetTexture to assign a ambient texture mapping.
MapNormalstringReadUsed in GetTexture/SetTexture to assign a normal texture mapping.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Methods

SignatureDescription
ShaderMaterial()Initializes a new instance of the ShaderMaterial class.
ShaderMaterial(name: string)Initializes a new instance of the ShaderMaterial class.
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.
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.

See Also

 English