ShaderMaterial

ShaderMaterial

Overview

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

A shader material that allows describing the material by external rendering engine or shader language.

This class provides 17 methods for working with ShaderMaterial objects in Java programs. Available methods include: A3DObject, ShaderMaterial, findProperty, getName, getProperties, getProperty, getTechniques, getTexture, iterator, removeProperty, setName, setProperty, and 2 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, name, and 2 more.

Properties

NameTypeAccessDescription
techniquesjava.util.List<ShaderTechnique>ReadGets all available techniques defined in this material.
MAP_SPECULARStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping.
MAP_DIFFUSEStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping.
MAP_EMISSIVEStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping.
MAP_AMBIENTStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping.
MAP_NORMALStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
ShaderMaterial()Initializes a new instance of the ShaderMaterial class.
ShaderMaterial(name: String)Initializes a new instance of the ShaderMaterial class.
getTechniques()java.util.List<ShaderTechnique>Gets all available techniques defined in this material.
getTexture(slotName: String)TextureBaseGets 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()StringFormats object to string.
iterator()Iterator<TextureSlot>Gets the enumerator to enumerate internal texture slots.
A3DObject()Calls A3DObject on this ShaderMaterial instance.
A3DObject(name: String)Calls A3DObject(name) on this ShaderMaterial instance.
getName()StringReturns the name.
setName(name: String)Sets the name value.
getProperties()PropertyCollectionReturns the properties.
findProperty(name: String)PropertyCalls findProperty(name) on this ShaderMaterial instance.
getProperty(name: String)ObjectCalls getProperty(name) on this ShaderMaterial instance.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String)booleanCalls removeProperty(name) on this ShaderMaterial instance.
removeProperty(property: Property)booleanCalls removeProperty(property) on this ShaderMaterial instance.

See Also

 English