PbrMaterial

PbrMaterial — PbrMaterial osztály. Örököl: Material.

Methods: com.aspose.threed


Metódusok

NameTypeAccessDescription
transparencydoubleReadGets or sets the transparency factor.
normalTextureTextureBaseReadGets or sets the texture of normal mapping.
specularTextureTextureBaseReadGets or sets the texture for specular color.
albedoTextureTextureBaseReadGets or sets the texture for albedo.
albedoVector3ReadGets or sets the base color of the material.
occlusionTextureTextureBaseReadGets or sets the texture for ambient occlusion.
occlusionFactordoubleReadGets or sets the factor of ambient occlusion.
metallicFactordoubleReadGets or sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
roughnessFactordoubleReadGets or sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth.
metallicRoughnessTextureBaseReadGets or sets the texture for metallic(in R channel) and roughness(in G channel).
emissiveTextureTextureBaseReadGets or sets the texture for emissive.
emissiveColorVector3ReadGets or sets the emissive color.
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.

Metódusok

SignatureDescription
PbrMaterial()Construct a default PBR material instance.
getTransparency()doubleGets or sets the transparency factor.
setTransparency(transparency: double)Sets the transparency value.
getNormalTexture()TextureBaseGets or sets the texture of normal mapping.
setNormalTexture(normalTexture: TextureBase)Sets the normal texture value.
getSpecularTexture()TextureBaseGets or sets the texture for specular color.
setSpecularTexture(specularTexture: TextureBase)Sets the specular texture value.
getAlbedoTexture()TextureBaseGets or sets the texture for albedo.
setAlbedoTexture(albedoTexture: TextureBase)Sets the albedo texture value.
getAlbedo()Vector3Gets or sets the base color of the material.
setAlbedo(albedo: Vector3)Sets the albedo value.
getOcclusionTexture()TextureBaseGets or sets the texture for ambient occlusion.
setOcclusionTexture(occlusionTexture: TextureBase)Sets the occlusion texture value.
getOcclusionFactor()doubleGets or sets the factor of ambient occlusion.
setOcclusionFactor(occlusionFactor: double)Sets the occlusion factor value.
getMetallicFactor()doubleGets or sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
setMetallicFactor(metallicFactor: double)Sets the metallic factor value.
getRoughnessFactor()doubleGets or sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth.
setRoughnessFactor(roughnessFactor: double)Sets the roughness factor value.
getMetallicRoughness()TextureBaseGets or sets the texture for metallic(in R channel) and roughness(in G channel).
setMetallicRoughness(metallicRoughness: TextureBase)Sets the metallic roughness value.
getEmissiveTexture()TextureBaseGets or sets the texture for emissive.
setEmissiveTexture(emissiveTexture: TextureBase)Sets the emissive texture value.
getEmissiveColor()Vector3Gets or sets the emissive color.
setEmissiveColor(emissiveColor: Vector3)Sets the emissive color value.
fromMaterial(material: Material)PbrMaterialAllow convert other material to PbrMaterial.
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()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

Lásd még

 Magyar